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>, org.patternfly.core.OuiaSupport<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))Value to use for margin: auto at various breakpointsalignContent(AlignContent alignContent) Same asalignContent(breakpoints(default_, alignContent))alignContent(org.patternfly.style.Breakpoints<AlignContent> alignContent) Value to add for align-content property at various breakpointsalignItems(AlignItems alignItems) Same asalignItems(breakpoints(default_, alignItems))alignItems(org.patternfly.style.Breakpoints<AlignItems> alignItems) Value to add for align-items property at various breakpointsSame asalignSelf(breakpoints(default_, alignSelf))Value to add for align-self property at various breakpointsSame ascolumnGap(breakpoints(default_, columnGap))Gap between columns at various breakpoints.Same asdirection(breakpoints(default_, direction))Value to add for flex-direction property at various breakpointsSame asdisplay(breakpoints(default_, 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(org.patternfly.style.Breakpoints<FlexShorthand> flexShorthand) Value to add for flex property at various breakpointsSame asflexWrap(breakpoints(default_, flexWrap))Value to set for flex-wrap property at various breakpointsfullWidth(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) Whether to set width: 100% at various breakpointsSame asgap(breakpoints(default_, gap))Gap between items at various breakpoints.grow(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) Whether to add flex: grow at various breakpointsjustifyContent(JustifyContent justifyContent) Same asjustifyContent(breakpoints(default_, justifyContent))justifyContent(org.patternfly.style.Breakpoints<JustifyContent> justifyContent) Value to add for justify-content property at various breakpointsSame asorder(breakpoints(default_, order))Same asrowGap(breakpoints(default_, rowGap))Gap between rows at various breakpoints.shrink(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) Whether to add flex: shrink at various breakpointsspaceItems(SpaceItems spaceItems) Same asspaceItems(breakpoints(default_, spaceItems))spaceItems(org.patternfly.style.Breakpoints<SpaceItems> spaceItems) Space items at various breakpointsSame asspacer(breakpoints(default_, spacer))Spacers at various breakpointsthat()Methods inherited from class BaseLayout
element, layoutType, ouiaComponentTypeMethods 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
hiddenMethods inherited from interface org.patternfly.core.OuiaSupport
initOuia, initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Method Details
-
flex
-
flex
-
addItem
-
align
-
align
-
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
-
columnGap
-
columnGap
-
direction
-
direction
-
display
-
display
-
flex
Same asflex(breakpoints(default_, flexShorthand)) -
flex
Value to add for flex property at various breakpoints -
flexWrap
-
flexWrap
-
fullWidth
public Flex fullWidth(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) Whether to set width: 100% at various breakpoints -
gap
-
gap
-
grow
public Flex grow(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) 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
-
shrink
public Flex shrink(org.patternfly.style.Breakpoint breakpoint, org.patternfly.style.Breakpoint... more) Whether to add flex: shrink at various breakpoints -
spaceItems
Same asspaceItems(breakpoints(default_, spaceItems)) -
spaceItems
Space items at various breakpoints -
spacer
-
spacer
-
that
-