_createSubMenu(submenu) {
    const menu = new Menu();
    submenu.forEach((item) => menu.append(this._createMenuItem(item)));
    return menu;
  }
/**
   * Creates a sub mennu for menu item.
   * @param {Array} submenu Menu data model
   * @return {Menu} Menu item to be appended to another menu item.
   */
Creates a sub mennu for menu item.
@param {Array} submenu Menu data model
@return {Menu} Menu item to be appended to another menu item.
Creates a sub mennu for menu item . @param { Array } submenu Menu data model @return { Menu } Menu item to be appended to another menu item .
_createSubMenu(submenu) {
    const menu = new Menu();
    submenu.forEach((item) => menu.append(this._createMenuItem(item)));
    return menu;
  }
_createSubMenu ( submenu ) { const menu = new Menu ( ) ; submenu . forEach ( ( item ) => menu . append ( this . _createMenuItem ( item ) ) ) ; return menu ; }
Creates a sub mennu for menu item.
Creates a sub mennu for menu item .