You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.
Where, the menu option will be of the following format:
menuname:parent/child/menu
The prefix of menuname allows you to specify which menu it should be added to, while the path allows it to be generated in relation to all other menu items.
Menu generation would then be something like:
calipso.menu.render = function(req, menuName, startAt, depth) // req is required for security vs current user
And exposed via a helper:
getMenu('admin','',-1);
Also, we could later add an 'alias' type module that enables other menu items and aliases to be matched to existing routes ... need to give that thought in a separate thread.
It would be created via the module router, but there would be a single, central menu object that spans all modules via calipso.menu.
Thoughts?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ok, the menu library really isn't very great at the moment - I think we need another crack at making it actually useful.
Issues:
So, my thoughts (this is discussion so please add):
Definitions
Menus should be added via route configuration, so where currently we have
We would instead have something like:
Where, the menu option will be of the following format:
The prefix of menuname allows you to specify which menu it should be added to, while the path allows it to be generated in relation to all other menu items.
Menu generation would then be something like:
And exposed via a helper:
Also, we could later add an 'alias' type module that enables other menu items and aliases to be matched to existing routes ... need to give that thought in a separate thread.
It would be created via the module router, but there would be a single, central menu object that spans all modules via calipso.menu.
Thoughts?
The text was updated successfully, but these errors were encountered: