Class NavBar.NavItem

java.lang.Object
io.mindspice.simplypages.components.navigation.NavBar.NavItem
All Implemented Interfaces:
Component
Enclosing class:
NavBar

public static class NavBar.NavItem extends Object implements Component
  • Constructor Details

    • NavItem

      public NavItem(String text, String href)
      Creates an entry with an application-controlled or separately navigation-validated href.
    • NavItem

      public NavItem(String text, String href, boolean active)
      Creates an active-state entry with an application-controlled or separately navigation-validated href. Encoding does not apply Link's scheme policy.
  • Method Details

    • withHxGet

      public NavBar.NavItem withHxGet(String url)
      Sets an application-controlled or separately endpoint-validated URL; no request authorization.
    • withHxTarget

      public NavBar.NavItem withHxTarget(String target)
    • withHxPushUrl

      public NavBar.NavItem withHxPushUrl()
    • render

      public String render(RenderContext context)
      Description copied from interface: Component
      Renders this component using the supplied render context.
      Specified by:
      render in interface Component
      Parameters:
      context - context used for slot resolution and render policy
      Returns:
      rendered HTML for this component
    • render

      public String render()
      Description copied from interface: Component
      Renders this component with an empty context.
      Specified by:
      render in interface Component
      Returns:
      rendered HTML for this component