Class Grid

All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,Grid>, ElementClassListMethods<HTMLElement,Grid>, ElementConsumerMethods<HTMLElement,Grid>, ElementContainerMethods<HTMLElement,Grid>, ElementEventMethods<HTMLElement,Grid>, ElementIdMethods<HTMLElement,Grid>, ElementQueryMethods<HTMLElement>, ElementTextMethods<HTMLElement,Grid>, HTMLElementAttributeMethods<HTMLElement,Grid>, HTMLElementDataMethods<HTMLElement,Grid>, HTMLElementStyleMethods<HTMLElement,Grid>, HTMLElementVisibilityMethods<HTMLElement,Grid>, IsElement<HTMLElement>, TypedBuilder<HTMLElement,Grid>, Layout, org.patternfly.style.Modifiers.Gutter<HTMLElement,Grid>

public class Grid extends BaseLayout<HTMLElement,Grid> implements org.patternfly.style.Modifiers.Gutter<HTMLElement,Grid>
The grid layout places content on a fixed 12 column grid.
See Also:
  • Method Details

    • grid

      public static Grid grid()
    • grid

      public static <E extends HTMLElement> Grid grid(HTMLContainerBuilder<E> builder)
    • addItems

      public <T> Grid addItems(Iterable<T> items, Function<T,GridItem> display)
    • addItem

      public Grid addItem(GridItem item)
    • columns

      public Grid columns(int columns)
      Same as columns(breakpoints(default_, columns))
    • columns

      public Grid columns(org.patternfly.style.Breakpoints<Integer> columns)
      The number of columns all grid items should span on a specific breakpoint.
    • order

      public Grid order(String order)
      Same as order(breakpoints(default_, order))
    • order

      public Grid order(org.patternfly.style.Breakpoints<String> order)
      Modifies the flex layout element order property.
    • span

      public Grid span(int rows)
      The number of rows a column in the grid should span. Value should be a number 1-12.
    • that

      public Grid that()
      Specified by:
      that in interface TypedBuilder<HTMLElement,Grid>