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
Currently it is only possible to add a MenuEntry or MenuGroup to a Menu.
It should also be possible to add another Menu (Submenu) to a Menu if there are to many Entries to display in the first Level or an additional hierarchy makes sense.
The text was updated successfully, but these errors were encountered:
i completely agree with this
the current implementation is one of the oldest within cat-angular (as can be seen by the name $mainMenu instead of something like catMenuService)
currently the top element is a MenuBar, followed by Menu and then either MenuGroup or MenuEntry
much better would it be to replace the MenuBar with just Menu, as a generic container element, which in turn can contain Menu, or MenuEntry elmements
as for MenuGroup items i'm not yet completely sure whether or not these should be part of the hierarchy or just a special type of a MenuEntry (similar to menu separators in java swing applications)
both solutions have it's benefits and drawbacks respectively. But one important part is that the service is just here for providing a model which represents the whole menu, therefor i'm more inclined to go for the latter implementation as the service doesn't have to know anything about groups this way.
how this model is rendered is entirely up to the directive and can also be customized quite easily either by providing a custom directive template for small changes, or by just implementing a custom directive altogether
the service in itself doesn't prohibit you from adding any options to you like to the menu entry, so providing a custom directive which allows for menu groups to be rendered as sub-menus would be easily possible without changing the current service implemenation
Currently it is only possible to add a
MenuEntry
orMenuGroup
to aMenu
.It should also be possible to add another
Menu
(Submenu) to aMenu
if there are to many Entries to display in the first Level or an additional hierarchy makes sense.The text was updated successfully, but these errors were encountered: