cancel
Showing results for 
Search instead for 
Did you mean: 

Richtooltip - possible to extend the time before it appears?

former_member195355
Participant
0 Kudos

Hiya,

I have a button with a richtooltip associated with it - works great - user hovers their mouse over the button and the richtooltip appears with extra info.

Only problem is that the richtooltip appears a litttle too quickly - is there a parameter that can be used to delay its appearance, to say three seconds after the mouse hovers over the button?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

There is property openDelay in sap.ui.core.TooltipBase which is a superclass of sap.ui.commons.RichTooltip

former_member195355
Participant
0 Kudos

Hi Maksim,

That sounds perfect!

Sorry, I'm an old school ABAP developer, would you know how I would access that property?

Say if I had a button setup like this, where and how could I access a superclass?

var b1 = new sap.ui.commons.Button({

  text: 'Track Sales Orders',

});

var oRttTextField1 = new sap.ui.commons.RichTooltip({

  title: "SAP Fiori exampel tooltip",

});

b1.setTooltip(oRttTextField1);

Is there anywhere where I could learn basics like this without having to trouble nice guys like you?

Thanks in advance!

former_member182372
Active Contributor
0 Kudos

var oRttTextField1 = new sap.ui.commons.RichTooltip({

  title: "SAP Fiori exampel tooltip",

openDelay : 100//milliseconds, default is 500

});

Answers (0)