21 Sep 2010 10:40 AM #1
ContextMenu for Text Component
I was looking for information about context menus for standard components, but all I can found in the forum was for trees and grids.
So my issue is:
I have a list of Textelements and for each element I set a context menu.
But how can I get the information for which textelement the contextmenu was opened if I choose one of the menuitems?
I set for each menuitem a listener but this listeners can give me only the Button back not the textelement... or am I wrong?
Thanks for help.
23 Sep 2010 4:26 AM #2
- Join Date
- Mar 2007
- DC Area =)
- Vote Rating
if you look at the event handler displaying the menu, you'll see Ext.EventObject being passed. You can use that.getTarget() to get a reference to the element for which the event was generated.
23 Sep 2010 1:10 PM #3
Omph... Thanks really much for your answer...
But I guess I clicked on the wrong forum....
My Problem is in gxt....
But thx anyway ;-)
Maybe someone can move this post to the gxt 2.0 forum? Thx
By Tewr in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 14 Apr 2010, 11:44 AM
By mysticav in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 9 Nov 2008, 1:13 AM
By v0n in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 12 Jun 2008, 2:14 PM
By polverari in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 21 Jun 2007, 7:07 AM