Documentation

getMenu

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

object getMenu(string| number id);

Parameters

idstring| numberid of a menu item

Returns

objectobject of menu (or submenu) where the item is located

See also

Example

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

Back to top