gets the submenu object of a menu item (if any)

object getSubMenu(string| number id);
idstring| numbermenu item ID
objectobject of a child menu (submenu), if any




The method helps retrieve properties of submenu items:

$$("mymenu").attachEvent("onItemClick", function(id){
    var submenu = this.getSubMenu(id);
        //returns text value of a clicked menu item
        webix.message("Click: " + submenu.getItem(id).value);
See also
  • API
  • Articles
  • Back to top
    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.