PDA

View Full Version : Applying QuickTips to all elements with a given class



lbouthillier
30 Jul 2007, 9:21 PM
I'm relatively new to Ext, but have had little trouble getting most things to work (including overriding methods of Ext objects). But one thing I'm stuck on is trying to add a QuickTip to every element in the page with a given class.

I've tried a bunch of things, including this:

Ext.QuickTips.register({
text: 'mytip',
target: Ext.DomQuery.select('img[@class=notify]')
});

...as well as a few other methods too numerous at this point to recount here. Nothing I've tried has worked. There are no errors or exceptions thrown, but no tips appear.

Is there a simple way to add a QuickTip to every element with a given class? I'm using Ext 1.0.1.

Thanks,
Larry