Interface Drawer

All Superinterfaces:
Component, Component.BelongToFrame, ComponentContainer, HasComponents, OrderedContainer
All Known Implementing Classes:
DrawerImpl

@StudioComponent(caption="Drawer", category="Main window", xmlElement="drawer", canvasBehaviour=CONTAINER, containerType=VERTICAL, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/drawer.html", unsupportedProperties={"align","enable","expand","responsive","width","height","visible"}, icon="io/jmix/ui/icon/mainwindow/drawer.svg") public interface Drawer extends OrderedContainer, Component.BelongToFrame
A panel that can be collapsed to the left hand side.

Typically used as a side menu container.

  • Field Details

  • Method Details

    • collapse

      void collapse()
      Collapses the drawer.
    • expand

      void expand()
      Expands the drawer.
    • toggle

      void toggle()
      Toggles the drawer.
    • setExpandOnHover

      @StudioProperty(defaultValue="false") void setExpandOnHover(boolean expandOnHover)
      Sets a mode when drawer is expanded on hover. Note that collapse state is not changed. false by default.
      Parameters:
      expandOnHover - a boolean value specifying if drawer should be expanded on hover.
    • isExpandOnHover

      boolean isExpandOnHover()
      Returns:
      whether the drawer should be expanded on hover.
    • isCollapsed

      boolean isCollapsed()
      Returns:
      whether the drawer is collapsed.