Interface INav

All Superinterfaces:
IChildable<INav,IChildrenOfNavbar>, IChildrenOfInputgroup<INav>, IChildrenOfNavbar<INav>, IComponent<INav>, IHtmlBasedComponent<INav>, ILabelElement<INav>, ILabelImageElement<INav>, IXulElement<INav>

Immutable Nav component

A container is used to display navitems, it should be placed inside a INavbar.

Support @Action

Name Action Type
onOpen ActionData: OpenData
Denotes user has opened or closed a nav component.
Author:
katherine
See Also:
  • Nav
  • Field Details

    • DEFAULT

      static final INav DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.nav.Nav"

      Specified by:
      getWidgetClass in interface IComponent<INav>
    • getBadgeText

      @Nullable String getBadgeText()
      Returns the badge text of the nav

      Default: null

    • withBadgeText

      INav withBadgeText(@Nullable String badgeText)
      Returns a copy of this immutable component with the specified badgeText.

      Sets the badge text of the nav

      Parameters:
      badgeText - The badge text of the nav

      Default: null.

      Returns:
      A modified copy of the this object
    • isOpen

      default boolean isOpen()
      Returns whether this container is open.

      Default: false.

    • withOpen

      INav withOpen(boolean open)
      Returns a copy of this immutable component with the specified open.

      Sets whether this container is open.

      Parameters:
      open - Whether this container is open.

      Default: false.

      Returns:
      A modified copy of the this object
    • of

      static INav of(String label)
      Returns the instance with the given label.
      Parameters:
      label - The label that the nav holds.
    • ofIconSclass

      static INav ofIconSclass(String iconSclass)
      Returns the instance with the given iconSclass.
      Parameters:
      iconSclass - The iconSclass that the nav holds.
    • ofId

      static INav ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component