@StudioComponent(caption="Drawer", category="Main window", xmlElement="drawer", canvasBehaviour=CONTAINER, containerType=VERTICAL, documentationURL="https://docs.jmix.io/jmix/%VERSION%/backoffice-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
Typically used as a side menu container.
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
void |
collapse()
Collapses the drawer.
|
void |
expand()
Expands the drawer.
|
boolean |
isCollapsed() |
boolean |
isExpandOnHover() |
void |
setExpandOnHover(boolean expandOnHover)
Sets a mode when drawer is expanded on hover.
|
void |
toggle()
Toggles the drawer.
|
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
static final java.lang.String NAME
void collapse()
void expand()
void toggle()
@StudioProperty(defaultValue="false") void setExpandOnHover(boolean expandOnHover)
false
by default.expandOnHover
- a boolean value specifying if drawer should be expanded on hover.boolean isExpandOnHover()
boolean isCollapsed()