Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create side nav from menu entries #6957

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

sissbruecker
Copy link
Contributor

Allows to create a side nav instance from a list of MenuEntrys which can be aquired from MenuConfiguration.getMenuEntries. Also adds a constructor to SideNavItem to create an item from a single MenuEntry.

  • When an entry has a view class, it detects the path from the route annotation of that class and also adds route aliases
  • When an entry has no view class (such as client-side routes), it uses the string path of the entry as path
  • Automatically sets either an Icon or SvgIcon as prefix depending on whether the icon string references an iconset icon or an SVG file

Part of #6885

@sissbruecker sissbruecker merged commit e3cb174 into main Dec 17, 2024
5 checks passed
@sissbruecker sissbruecker deleted the feat/side-nav-menu-entry-support branch December 17, 2024 13:26
sissbruecker added a commit that referenced this pull request Dec 18, 2024
sissbruecker added a commit that referenced this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants