Class SideNav.NavItem

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

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

    • NavItem

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

    • withIcon

      public SideNav.NavItem withIcon(String icon)
    • withHxGet

      public SideNav.NavItem withHxGet(String url)
      Sets an application-controlled or separately endpoint-validated URL; encoding is not auth.
    • withHxTarget

      public SideNav.NavItem withHxTarget(String target)
    • withHxPushUrl

      public SideNav.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