getMenu
gets object of a menu/submenu where an item is located
object getMenu(string| number id);
| id | string| number | id of a menu item |
| object | object 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
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.