Class ExpandingTouchNavRenderer

java.lang.Object
org.vaadin.addons.joelpop.appnavlayout.ui.layout.appnav.ExpandingTouchNavRenderer
All Implemented Interfaces:
NavRenderer

@CssImport("./expanding-touch-nav.css") public class ExpandingTouchNavRenderer extends Object implements NavRenderer
An alternative NavRenderer for NavType.TOUCH — a grid of root sections in NavSlots.touchBar() that expands upward via a chevron when there are more than fit, instead of the default "More" popover. The primary row always shows a fixed, even number of items; the rest sit in a collapsible overflow section beneath it. Also drives the shared SecondaryTabBar drill-down bar, the same as every other built-in touch/rail renderer.
  • Constructor Details

    • ExpandingTouchNavRenderer

      public ExpandingTouchNavRenderer()
  • Method Details

    • render

      public void render(NavRenderContext context)
      Description copied from interface: NavRenderer
      Builds or updates this renderer's content for the current nav state. Called once when this scenario becomes active, again on every completed navigation, and again whenever nav configuration changes (grouper swap, path matcher change). The implementation decides which slot(s) in context.slots() to populate and how — including any overflow or drill-down scaffolding it needs (a "More…" popover, a chevron, a swipeable container, etc).
      Specified by:
      render in interface NavRenderer