gets object of a menu/submenu where an item is located
id | string| number | id of a menu item |
object | object of menu (or submenu) where the item is located |
$$("mymenu").attachEvent("onItemClick", function(id){
var menu = this.getMenu(id);
webix.message("Click: "+menu.getItem(id).value);
});