Enum Class GridVariant

java.lang.Object
java.lang.Enum<GridVariant>
com.vaadin.flow.component.grid.GridVariant
All Implemented Interfaces:
Serializable, Comparable<GridVariant>, Constable

public enum GridVariant extends Enum<GridVariant>
Set of theme variants applicable for vaadin-grid component.
  • Enum Constant Details

    • LUMO_NO_BORDER

      public static final GridVariant LUMO_NO_BORDER
    • LUMO_NO_ROW_BORDERS

      public static final GridVariant LUMO_NO_ROW_BORDERS
    • LUMO_COLUMN_BORDERS

      public static final GridVariant LUMO_COLUMN_BORDERS
    • LUMO_ROW_STRIPES

      public static final GridVariant LUMO_ROW_STRIPES
    • LUMO_COMPACT

      public static final GridVariant LUMO_COMPACT
    • LUMO_WRAP_CELL_CONTENT

      public static final GridVariant LUMO_WRAP_CELL_CONTENT
    • MATERIAL_COLUMN_DIVIDERS

      public static final GridVariant MATERIAL_COLUMN_DIVIDERS
  • Method Details

    • values

      public static GridVariant[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GridVariant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVariantName

      public String getVariantName()
      Gets the variant name.
      Returns:
      variant name