PDA

View Full Version : How to place tooltip on Label component



Kuntal Sinha
22 Nov 2011, 3:07 PM
I am using the following code to place a tooltip on a Label, but this is not working. Could anyone please suggest how to do it? This is bit urgent, thanks in advance.
xtype : 'label',listeners: {render: function(c){c.getEl().on({mouseOver: function(el){Ext.QuickTips.register({target: 'lblSummary',text: reportSummaryTip,enabled: true});},scope: c});}}

mitchellsimoens
23 Nov 2011, 12:01 PM
You need to post in the appropriate forum, what forum would you like me to move this to?
All you have to do is set the 'data-qtip' attribute on the element and if you have initialized the QuikTips then it will pick it up automatically.

Kuntal Sinha
23 Nov 2011, 1:20 PM
Hi Mitchell,

Thanks for your response. Could you please move this post to Ext JS Community Forums 3.x (http://www.sencha.com/forum/forumdisplay.php?39-Ext-JS-Community-Forums-3.x)?

Kuntal