PDA

View Full Version : Tools with tooltips populated by a function



delp
9 Apr 2014, 8:09 AM
Lets say I have a panel with a tool. That tool should display a tooltip, but its tooltip has to be dynamic. So it will not be known until the user mouses over the tool.

How can I do this?

I was thinking of providing a function that as the user mouses over or before the tip gets shown it will update its tooltip string. But I've not been able to complete this.

Zinnia
9 Apr 2014, 10:01 PM
Check the below url , hope this may help you

http://stackoverflow.com/questions/14286614/dynamically-change-tooltip-of-a-tool-object

delp
10 Apr 2014, 4:27 AM
It was quite straight forward (when you know the answer of course), the answer is as follows -




{
type : 'help',
tooltip:
{
listeners:
{
'render': function(target)
{
target.tooltip = "enter your tooltip - pull this in from dynamic source";
}
}
}
}