PDA

View Full Version : Menu and/or MenuItem DoubleClick event...



mjoksa
27 Aug 2009, 6:47 AM
Hello,
Can anybody tell me how to add DoubleClick listener to MenuItem (or Menu)?
I just need to do some stuff when user double click on menu item.

10x in advance

Animal
27 Aug 2009, 6:50 AM
Add a dblclick handler to its element.

Do a forum search for the HUNDREDS of threads which cover adding DOM listeners to Components' Elements.

mjoksa
27 Aug 2009, 6:53 AM
Add a dblclick handler to its element.

Do a forum search for the HUNDREDS of threads which cover adding DOM listeners to Components' Elements.

I've just spent 30min searching forums, but could not implement valid solution.
Can you please give me some sample code.

I know this is just annoying :) for you, but your help will be much appreciated.

10x

Animal
27 Aug 2009, 6:56 AM
"sample" = code which you copy/paste, and from which nothing is learned, and you get someone else to do it next time round.

Add a listener for the render event.

In that listener, add a dblclick listener to the Component's Element (http://extjs.com/deploy/ext-3.0.0/docs/?class=Ext.Component&member=getEl).

mjoksa
27 Aug 2009, 6:59 AM
Very, very, very big thanks...