Annotation Interface MenuItem


@Retention(RUNTIME) @Target(TYPE) public @interface MenuItem
  • Field Details

  • 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