Class Flex
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, Flex>, ElementClassListMethods<HTMLElement, Flex>, ElementConsumerMethods<HTMLElement, Flex>, ElementContainerMethods<HTMLElement, Flex>, ElementEventMethods<HTMLElement, Flex>, ElementIdMethods<HTMLElement, Flex>, ElementQueryMethods<HTMLElement>, ElementTextMethods<HTMLElement, Flex>, HTMLElementAttributeMethods<HTMLElement, Flex>, HTMLElementDataMethods<HTMLElement, Flex>, HTMLElementStyleMethods<HTMLElement, Flex>, HTMLElementVisibilityMethods<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 Flexflex()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 BaseLayout
element, layoutTypeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface ElementTextMethods
text, textMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hidden
-
Method Details
-
flex
-
flex
-
addItem
-
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
-
alignSelf
Value to add for align-self property at various breakpoints -
columnGap
-
columnGap
Gap between columns at various breakpoints. This will override spacers for the main axis. -
direction
-
direction
Value to add for flex-direction property at various breakpoints -
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
-
flexWrap
Value to set for flex-wrap property at various breakpoints -
fullWidth
Whether to set width: 100% at various breakpoints -
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
-
order
-
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
-
spacer
Spacers at various breakpoints -
that
-