Class Props

java.lang.Object
com.persequor.extension.frontend.Props

public class Props extends Object
  • Constructor Details

    • Props

      public Props()
  • Method Details

    • of

      public static Props of(Width width)
      Parameters:
      width - The grid width this section should have
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(Direction direction)
      Parameters:
      direction - The layout direction of this container
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(Justify justify)
      Parameters:
      justify - Defines the justify-content style property for this section
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(AlignItems alignItems)
      Parameters:
      alignItems - Defines the `align-items` style property for this section
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(ContainerType containerType)
      Parameters:
      containerType - The container type this section should have
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(Wrap wrap)
      Parameters:
      wrap - The wrap mode for this flex container
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of(Variant variant)
      Parameters:
      variant - The variant for this flex container
      Returns:
      A properties object on which you can set additional properties
    • of

      @Deprecated public static Props of(int elevation)
      Deprecated.
      use of().elevation(...) instead.
      Parameters:
      elevation - The elevation for this flex container
      Returns:
      A properties object on which you can set additional properties
    • of

      @Deprecated public static Props of(boolean square)
      Deprecated.
      use of().square(...) instead.
      Parameters:
      square - whether this flex container should have square corner
      Returns:
      A properties object on which you can set additional properties
    • of

      public static Props of()
      Returns:
      A properties object with all defaults
    • width

      public Props width(Width width)
      Parameters:
      width - The grid width this section should have
      Returns:
      A properties object on which you can set additional properties
    • direction

      public Props direction(Direction direction)
      Parameters:
      direction - The layout direction of this container
      Returns:
      A properties object on which you can set additional properties
    • height

      public Props height(String height)
      Parameters:
      height - The height this section should have, defined by CSS size such as: "500px"
      Returns:
      A properties object on which you can set additional properties
    • content

      public Props content(Justify justify)
      Deprecated.
      Please use justify() instead
      Parameters:
      justify - Defines the `justify-content` style property for this section
      Returns:
      A properties object on which you can set additional properties
    • justify

      public Props justify(Justify justify)
      Parameters:
      justify - Defines the `justify-content` style property for this section
      Returns:
      A properties object on which you can set additional properties
    • alignItems

      public Props alignItems(AlignItems alignItems)
      Parameters:
      alignItems - Defines the `align-items` style property for this section
      Returns:
      A properties object on which you can set additional properties
    • alignContent

      public Props alignContent(AlignContent alignContent)
      Parameters:
      alignContent - Defines the `align-content` style property for this section
      Returns:
      A properties object on which you can set additional properties
    • containerType

      public Props containerType(ContainerType containerType)
      Parameters:
      containerType - The container type this section should have
      Returns:
      A properties object on which you can set additional properties
    • wrap

      public Props wrap(Wrap wrap)
      Parameters:
      wrap - The wrap mode for this flex container
      Returns:
      A properties object on which you can set additional properties
    • variant

      public Props variant(Variant variant)
      Parameters:
      variant - The variant for this flex container
      Returns:
      A properties object on which you can set additional properties
    • elevation

      public Props elevation(int elevation)
      Parameters:
      elevation - The elevation for this flex container
      Returns:
      A properties object on which you can set additional properties
    • square

      public Props square(boolean square)
      Parameters:
      square - whether this flex container should have square corner
      Returns:
      A properties object on which you can set additional properties
    • spacing

      public Props spacing(int spacing)
      Parameters:
      spacing - space between children
      Returns:
      A properties object on which you can set additional properties
    • square

      public Props square()
      Sets this flex container to have square corners
      Returns:
      A properties object on which you can set additional properties
    • getWidth

      public Width getWidth()
    • getContainerType

      public ContainerType getContainerType()
    • getJustify

      public Justify getJustify()
    • getWrap

      public Wrap getWrap()
    • getVariant

      public Variant getVariant()
    • getElevation

      public int getElevation()
    • getSquare

      public boolean getSquare()
    • getHeight

      public String getHeight()
    • getAlignItems

      public AlignItems getAlignItems()
    • getAlignContent

      public AlignContent getAlignContent()
    • getDirection

      public Direction getDirection()
    • getSpacing

      public int getSpacing()