Class RailModeChangedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<SideNavRail>
org.vaadin.addons.componentfactory.sidenavrail.RailModeChangedEvent
All Implemented Interfaces:
Serializable

public class RailModeChangedEvent extends com.vaadin.flow.component.ComponentEvent<SideNavRail>
See Also:
  • Constructor Details

    • RailModeChangedEvent

      public RailModeChangedEvent(SideNavRail source, boolean fromClient, boolean railMode)
      Parameters:
      source - the nav that changed state
      fromClient - whether the change originated on the client (currently always false since the mode is only driven server-side)
      railMode - the new rail-mode value
  • Method Details

    • isRailMode

      public boolean isRailMode()
      The new rail-mode value after the change.
      Returns:
      true if the rail just switched into rail mode, false if it switched back to normal mode