Enum Class ResponsiveGridLayout.Breakpoint

java.lang.Object
java.lang.Enum<ResponsiveGridLayout.Breakpoint>
io.jmix.ui.component.ResponsiveGridLayout.Breakpoint
All Implemented Interfaces:
Serializable, Comparable<ResponsiveGridLayout.Breakpoint>, Constable
Enclosing interface:
ResponsiveGridLayout

public static enum ResponsiveGridLayout.Breakpoint extends Enum<ResponsiveGridLayout.Breakpoint>
Breakpoint representing minimum viewport widths used in media query ranges. When used, they apply to that one breakpoint and all those above it (e.g. SM applies to small, medium, large, and extra large devices, but not the first XS breakpoint).
  • Enum Constant Details

    • XS

      public static final ResponsiveGridLayout.Breakpoint XS
      Extra small devices (portrait phones, less than 576px). No media query for `xs` since this is the default in Bootstrap.
    • SM

      public static final ResponsiveGridLayout.Breakpoint SM
      Small devices (landscape phones, 576px and up).

      Media query example:

       @media (min-width: 576px) { ... }
       
    • MD

      public static final ResponsiveGridLayout.Breakpoint MD
      Medium devices (tablets, 768px and up).

      Media query example:

       @media (min-width: 768px) { ... }
       
    • LG

      public static final ResponsiveGridLayout.Breakpoint LG
      Large devices (desktops, 992px and up).

      Media query example:

       @media (min-width: 992px) { ... }
       
    • XL

      public static final ResponsiveGridLayout.Breakpoint XL
      Extra large devices (large desktops, 1200px and up).

      Media query example:

       @media (min-width: 1200px) { ... }
       
  • Method Details

    • values

      public static ResponsiveGridLayout.Breakpoint[] 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 ResponsiveGridLayout.Breakpoint 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