Package org.patternfly.component.drawer
Class DrawerPanel
java.lang.Object
org.patternfly.component.SubComponent<HTMLDivElement,DrawerPanel>
org.patternfly.component.drawer.DrawerPanel
- All Implemented Interfaces:
Attachable
,Container<HTMLDivElement,
,DrawerPanel> Finder<HTMLDivElement>
,HasElement<HTMLDivElement,
,DrawerPanel> HasHTMLElement<HTMLDivElement,
,DrawerPanel> IsElement<HTMLDivElement>
,TypedBuilder<HTMLDivElement,
DrawerPanel>
The sliding panel in a
Drawer
component. Elements should not be added directly to this subcomponent, but instead
nested inside a DrawerPanelBody
or DrawerPanelHead
.-
Method Summary
Modifier and TypeMethodDescriptionaddBody
(DrawerPanelBody body) addHead
(DrawerPanelHead head) ariaResizeLabel
(String ariaResizeLabel) void
attach
(MutationRecord mutationRecord) color
(DrawerColor color) double
defaultSize
(String defaultSize) The starting size of a resizable drawer, in either pixels or percentage.void
detach
(MutationRecord mutationRecord) static DrawerPanel
increment
(int increment) The increment amount for keyboard drawer resizing, in pixels.The maximum size of a drawer, in either pixels or percentage.The minimum size of a drawer, in either pixels or percentage.noBorder()
Same as noBorder(true)noBorder
(boolean noBorder) Adds/removes modifier(noBorder)onResize
(ResizeHandler<DrawerPanel> resizeHandler) Makes this drawer panel resizable.that()
widths
(Breakpoints<Width> widths) Width for drawer panel at various breakpoints.Same aswidths(breakpoints(default_, widths))
Methods inherited from class org.patternfly.component.SubComponent
element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Method Details
-
drawerPanel
-
attach
- Specified by:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
addHead
-
addBody
-
defaultSize
The starting size of a resizable drawer, in either pixels or percentage. -
minSize
The minimum size of a drawer, in either pixels or percentage. -
maxSize
The maximum size of a drawer, in either pixels or percentage. -
color
-
noBorder
Same as noBorder(true) -
noBorder
Adds/removes modifier(noBorder) -
resizable
Makes this drawer panel resizable. Unlike other flags, this can only be turned on, but not off. -
increment
The increment amount for keyboard drawer resizing, in pixels. -
widths
Same aswidths(breakpoints(default_, widths))
-
widths
Width for drawer panel at various breakpoints. Overridden by resizable drawerminSize(String)
anddefaultSize(String)
. -
that
- Specified by:
that
in interfaceTypedBuilder<HTMLDivElement,
DrawerPanel>
-
ariaResizeLabel
-
onResize
-
currentWidth
public double currentWidth()
-