getContext

gets the master area for contextmenu

object getContext();
objectcontext object

Example

$$("contextmenu1").attachTo($$("list1")); //menu is initialized for list
 
var context = this.getContext(); //gets master area (where list item is)
var list = context.obj; //gets list item object
var listId = context.id; //gets the id of the right-clicked list item

Related samples

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.