docs icon indicating copy to clipboard operation
docs copied to clipboard

Automatic main menu documentation

Open platosha opened this issue 1 year ago • 1 comments

We should have an article explaining how the automatic main menu works. The aspects to mention:

  • How the menu entries are collected:
    • In Flow, using the @Menu annotation,
    • In Hilla, using the file router views metadata.
  • What kind of sorting and filtering is applied.
  • How the user authentication affects the menu with various view access control rules.
  • How to get the data for menu items and render the menu:
    • createMenuItems() function in Hilla
    • Equivalent for Flow

Update creating the main menu guide: https://vaadin.com/docs/next/flow/application/main-view#flow.application.main-view.menu

platosha avatar May 06 '24 07:05 platosha

The Creating Menu From Routes heading is partially addressing this issue. Probably, some points regarding the filtering/ordering of the menus can be covered under the same section (not to detailed though), and a separate article at the Platform level docs can cover the topic in more details also addressing the hybrid applications.

taefi avatar May 06 '24 14:05 taefi