PDA

View Full Version : Change tool tip at runtime



AEKirin
24 Jan 2014, 12:43 PM
How do I change a Tool-tip (data-qtip) that is applied to a field via 'labelAttrTpl: 'data-qtip="Test Me "' or by creating one and assigning it a target element at run time. for example, there are multiple combo-boxes on my form combo1, 2, 3, etc.), each with a different tool-tip. I want to change the tool-tip for the combo-box based upon what is selected.

Thanks

Andrew.Kirin@fticonsulting.com

droessner
24 Jan 2014, 2:02 PM
You can update the data-qtip attribute directly. If it was defined in the labelAttrTpl then you could do something like this:



combo1.labelEl.set({
'data-qtip': 'New tooltip'
});

AEKirin
27 Jan 2014, 4:04 AM
Thanks... worked out really well