Package org.patternfly.layout.flex
Class Flex
- All Implemented Interfaces:
Container<HTMLElement,
,Flex> Finder<HTMLElement>
,HasElement<HTMLElement,
,Flex> HasHTMLElement<HTMLElement,
,Flex> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
,Flex> Layout
The flex layout supports a completely custom layout by utilizing the PatternFly spacer and breakpoint systems. Flex layouts
are infinitely nestable and allow you to adjust spacing, direction, alignment, justification, wrapping, and width to fit your
needs.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionSame asalign(breakpoints(default_, align))
align
(Breakpoints<Align> align) Value to use for margin: auto at various breakpointsalignContent
(AlignContent alignContent) Same asalignContent(breakpoints(default_, alignContent))
alignContent
(Breakpoints<AlignContent> alignContent) Value to add for align-content property at various breakpointsalignItems
(AlignItems alignItems) Same asalignItems(breakpoints(default_, alignItems))
alignItems
(Breakpoints<AlignItems> alignItems) Value to add for align-items property at various breakpointsSame asalignSelf(breakpoints(default_, alignSelf))
alignSelf
(Breakpoints<AlignSelf> alignSelf) Value to add for align-self property at various breakpointsSame ascolumnGap(breakpoints(default_, columnGap))
columnGap
(Breakpoints<Gap> columnGap) Gap between columns at various breakpoints.Same asdirection(breakpoints(default_, direction))
direction
(Breakpoints<Direction> direction) Value to add for flex-direction property at various breakpointsSame asdisplay(breakpoints(default_, display))
display
(Breakpoints<Display> display) Value to set to display property at various breakpointsstatic Flex
flex()
static <E extends HTMLElement>
Flexflex
(HTMLContainerBuilder<E> builder) flex
(FlexShorthand flexShorthand) Same asflex(breakpoints(default_, flexShorthand))
flex
(Breakpoints<FlexShorthand> flexShorthand) Value to add for flex property at various breakpointsSame asflexWrap(breakpoints(default_, flexWrap))
flexWrap
(Breakpoints<FlexWrap> flexWrap) Value to set for flex-wrap property at various breakpointsfullWidth
(Breakpoint breakpoint, Breakpoint... more) Whether to set width: 100% at various breakpointsSame asgap(breakpoints(default_, gap))
gap
(Breakpoints<Gap> gap) Gap between items at various breakpoints.grow
(Breakpoint breakpoint, Breakpoint... more) Whether to add flex: grow at various breakpointsjustifyContent
(JustifyContent justifyContent) Same asjustifyContent(breakpoints(default_, justifyContent))
justifyContent
(Breakpoints<JustifyContent> justifyContent) Value to add for justify-content property at various breakpointsSame asorder(breakpoints(default_, order))
order
(Breakpoints<String> order) Same asrowGap(breakpoints(default_, rowGap))
rowGap
(Breakpoints<Gap> rowGap) Gap between rows at various breakpoints.shrink
(Breakpoint breakpoint, Breakpoint... more) Whether to add flex: shrink at various breakpointsspaceItems
(SpaceItems spaceItems) Same asspaceItems(breakpoints(default_, spaceItems))
spaceItems
(Breakpoints<SpaceItems> spaceItems) Space items at various breakpointsSame asspacer(breakpoints(default_, spacer))
spacer
(Breakpoints<Spacer> spacer) Spacers at various breakpointsthat()
Methods inherited from class org.patternfly.layout.BaseLayout
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
-
flex
-
flex
-
addItem
-
align
Same asalign(breakpoints(default_, align))
-
align
Value to use for margin: auto at various breakpoints -
alignContent
Same asalignContent(breakpoints(default_, alignContent))
-
alignContent
Value to add for align-content property at various breakpoints -
alignItems
Same asalignItems(breakpoints(default_, alignItems))
-
alignItems
Value to add for align-items property at various breakpoints -
alignSelf
Same asalignSelf(breakpoints(default_, alignSelf))
-
alignSelf
Value to add for align-self property at various breakpoints -
columnGap
Same ascolumnGap(breakpoints(default_, columnGap))
-
columnGap
Gap between columns at various breakpoints. This will override spacers for the main axis. -
direction
Same asdirection(breakpoints(default_, direction))
-
direction
Value to add for flex-direction property at various breakpoints -
display
Same asdisplay(breakpoints(default_, display))
-
display
Value to set to display property at various breakpoints -
flex
Same asflex(breakpoints(default_, flexShorthand))
-
flex
Value to add for flex property at various breakpoints -
flexWrap
Same asflexWrap(breakpoints(default_, flexWrap))
-
flexWrap
Value to set for flex-wrap property at various breakpoints -
fullWidth
Whether to set width: 100% at various breakpoints -
gap
Same asgap(breakpoints(default_, gap))
-
gap
Gap between items at various breakpoints. This will override spacers for the main axis. -
grow
Whether to add flex: grow at various breakpoints -
justifyContent
Same asjustifyContent(breakpoints(default_, justifyContent))
-
justifyContent
Value to add for justify-content property at various breakpoints -
order
Same asorder(breakpoints(default_, order))
-
order
-
rowGap
Same asrowGap(breakpoints(default_, rowGap))
-
rowGap
Gap between rows at various breakpoints. This will override spacers for the main axis. -
shrink
Whether to add flex: shrink at various breakpoints -
spaceItems
Same asspaceItems(breakpoints(default_, spaceItems))
-
spaceItems
Space items at various breakpoints -
spacer
Same asspacer(breakpoints(default_, spacer))
-
spacer
Spacers at various breakpoints -
that
-