Package com.vaadin.flow.router
Annotation Interface Menu
Defines menu information for a route for automatically populated menu.
Menu is used together with Route to include it automatically
in Hilla application's main menu, but only if server route is accessible and
frontend/views/@layout.tsx is used with createMenuItems()
function to build the menu.
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
title
String titleTitle to use in the menu. Falls back the page title if not defined.- Returns:
- the title of the item in the menu. Empty String by default.
- Default:
- ""
-
order
double orderUsed to determine the order in the menu. Ties are resolved based on the used title. Entries without explicitly defined ordering are put below entries with an order.Double.MIN_VALUEis the default value and considered as undefined.- Returns:
- the order of the item in the menu.
Double.MIN_VALUEby default.
- Default:
- 4.9E-324
-
icon
String iconIcon to use in the menu. Value can go inside a<vaadin-icon>element'siconattribute which accepts icon group and name like 'vaadin:file'. Or it can go to a<vaadin-icon>element'ssrcattribute which takes path to the icon. E.g. 'line-awesome/svg/lock-open-solid.svg'.- Returns:
- A String for an icon. Empty String by default.
- Default:
- ""
-