PDA

View Full Version : How can we update the ToolTip target property?



madhu84
26 Dec 2011, 3:42 AM
Hi,
Can some one let me know a way to update the target property of a ToolTip?



toolTip = new Ext.ToolTip({target: toolId,anchor: 'left', autoHide: false, autoHeight : true, closable: true, contentEl: 'my-tip'});


Now, how can I update the target of toolTip?

Thanks,
Madhu.

mitchellsimoens
26 Dec 2011, 8:07 AM
There is a setTarget method on the ToolTip.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tip.ToolTip-method-setTarget

madhu84
26 Dec 2011, 8:31 AM
Thank you Mitchell. Is there a way to do it with EXT JS 3.3.1?