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
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of javascript menu library product.