angularjs - How to change order of the menu items of the modules into mean.io? -
i had added each module of application menu of mean.io, of app.js file this:
theme.menus.add({ title: 'theme example page', link: 'theme example page', roles: ['authenticated'], menu: 'main' });
all modules shown in menu, order wrong, how can change order?
you need specify order of menu adding.
for example:
function menuconfig(menus) { menus.addmenuitem('topbar', { title: 'cuentas', state: 'accounts', type: 'dropdown', roles: ['*'], position: 1 }); }
you need use attribute >> position.
position (optional; default: 0) - specify order of appearance.
Comments
Post a Comment