getMenu

gets object of a menu/submenu where an item is located

object getMenu(string| number id);
idstring| numberid of a menu item
objectobject of menu (or submenu) where the item is located

Example

$$("mymenu").attachEvent("onItemClick", function(id){
    var menu = this.getMenu(id);
    webix.message("Click: "+menu.getItem(id).value);
});

Related samples

See also
  • API
  • Articles
  • Back to top
    If you have not checked yet, be sure to visit site of our main product Webix ui library and page of javascript custom context menu product.