[Dojo-interest] How to retain a reference to the clicked component from a MenuItem

elfwyn stefan at teamfassel.de
Wed Aug 24 09:12:26 EDT 2011


Im sorry for posting a simmilar question again, but I think the first one was
written too complicated.

Situation:
A context menu (dijit.Menu) opens on right-click on certain dynamically
created dijit-components.
Menu Items are triggered with left-click on the Context Menu and an event
handler is called.

What I need is a reference from the event handler to the dijit-component
that was clicked to open the context menu.

The visual setup is declarative.
Functions are connected programmatically.

In my special case the menu is defined on an enhanced grid, but since I
can't solve the basic operation mentioned above yet a small hint might point
me in the right direction.

Thanks



--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-to-retain-a-reference-to-the-clicked-component-from-a-MenuItem-tp3280921p3280921.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.


More information about the Dojo-interest mailing list