PDA

View Full Version : comboBox events



pex
3 May 2007, 5:37 AM
I want to display extra info when you select or hover over a list *item* in the comboBox.

The way my code works now, it listens to the mouseover on the innerList, however this causes problems when you want to use 'mouseout' (to hide the info), moreover it doesn't work when you use keyboard navigation. (to browse through the list of items)



this.innerList.on("mouseover", this.showDetails, this);
this.innerList.on("mouseout", function(){console.log('moving mouse out of list')});


The mouseout keeps getting triggered when you mouse over the innerList items, because the listener is attached to the complete innerList.

What would be a good approach; To attach the handler to every single innerList item or to use some other technique?

jsakalos
3 May 2007, 10:46 AM
Have you tried Ext.QuickTips?

pex
4 May 2007, 3:36 AM
I have looked at it but could not get it to work, it might be the better solution though, if only I knew on how to use them! :)

jsakalos
4 May 2007, 5:17 AM
Put somewhere in your app:



Ext.QuickTips.init();
and then set title or qtip attribute of options.