generators/app/templates/public/modules/core/js/services/menus.service.js
function (menuId, menuItemId, menuItemTitle, menuItemUiState, menuItemType, position) {
            this.validateMenuExistance(menuId);

            // Push new menu item
            menus[menuId].items.push({
                id: menuItemId,
                title: menuItemTitle,
                uiState: menuItemUiState,
                class: menuItemType,
                position: position || 0,
                items: []
            });

            // Return the menu object
            return menus[menuId];
        }
function (menuId, menuItemId, menuItemTitle, menuItemUiState, menuItemType, position) {
            this.validateMenuExistance(menuId);

            // Push new menu item
            menus[menuId].items.push({
                id: menuItemId,
                title: menuItemTitle,
                uiState: menuItemUiState,
                class: menuItemType,
                position: position || 0,
                items: []
            });

            // Return the menu object
            return menus[menuId];
        }
function ( menuId , menuItemId , menuItemTitle , menuItemUiState , menuItemType , position ) { this . validateMenuExistance ( menuId ) ; // Push new menu item menus [ menuId ] . items . push ( { id : menuItemId , title : menuItemTitle , uiState : menuItemUiState , class : menuItemType , position : position || 0 , items : [ ] } ) ; // Return the menu object return menus [ menuId ] ; }
Add menu item object
Add menu item object