Class ScrollingTouchNavRenderer

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

@CssImport("./scrolling-touch-nav.css") @JsModule("./scrolling-touch-nav-scroll-indicator.js") public class ScrollingTouchNavRenderer extends Object implements NavRenderer
An alternative NavRenderer for NavType.TOUCH — a horizontally scrollable bar of root sections in NavSlots.touchBar(), with fading edge chevrons instead of the default "More" popover. Every root section gets its own item; when there are more than fit, the bar scrolls instead of overflowing into a secondary surface. Also drives the shared SecondaryTabBar drill-down bar, the same as every other built-in touch/rail renderer.
  • Constructor Details

    • ScrollingTouchNavRenderer

      public ScrollingTouchNavRenderer()
  • 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