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