Documentation

getContext

gets the master area for contextmenu

object getContext();

Returns

objectwebix component or HTML object

See also

Example

$$("contextmenu1").attachTo($$("list1")); //menu is inited 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 it of the right-clicked list item

Back to top