Annotation Interface MenuItem
-
Field Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
boolean
com.vaadin.flow.component.icon.VaadinIcon
boolean
int
Class
<?>
-
Field Details
-
END
static final int END- See Also:
-
BEGINNING
static final int BEGINNING- See Also:
-
DEFAULT
static final int DEFAULT- See Also:
-
NO_PARENT
-
-
Element Details
-
enabled
boolean enabled- Returns:
- true if the menu item should be enabled in the navigation. Note that making the view disabled with this option, does NOT prevent navigation directly to the view using deep linking url.
- Default:
true
-
title
String title- Default:
""
-
order
int order- Default:
1000
-
icon
com.vaadin.flow.component.icon.VaadinIcon icon- Default:
FILE
-
parent
Class<?> parent- Returns:
- the parent view class in the menu hierarchy. Defaults to MenuItem.NO_PARENT (Class.class) which means this is a top level view.
- Default:
java.lang.Class.class
-
openByDefault
boolean openByDefault- Returns:
- true if this (parent) view should be open by default in the menu
- Default:
false
-
collapsible
boolean collapsible- Returns:
- true if this (parent) view should be collapsible in the menu (in case it is a grouping item)
- Default:
true
-