Class FormLayout.ResponsiveStep
- java.lang.Object
-
- com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
-
- All Implemented Interfaces:
com.vaadin.flow.component.JsonSerializable,Serializable
- Enclosing class:
- FormLayout
public static class FormLayout.ResponsiveStep extends Object implements com.vaadin.flow.component.JsonSerializable
A class used in describing the responsive layouting behavior of aFormLayout.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormLayout.ResponsiveStep.LabelsPositionEnum for describing the position of label components in aFormLayout.FormItem.
-
Constructor Summary
Constructors Constructor Description ResponsiveStep(String minWidth, int columns)Constructs a ResponsiveStep with the given minimum width and number of columns.ResponsiveStep(String minWidth, int columns, FormLayout.ResponsiveStep.LabelsPosition labelsPosition)Constructs a ResponsiveStep with the given minimum width, number of columns and label position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormLayout.ResponsiveStepreadJson(elemental.json.JsonObject value)elemental.json.JsonObjecttoJson()
-
-
-
Constructor Detail
-
ResponsiveStep
public ResponsiveStep(String minWidth, int columns)
Constructs a ResponsiveStep with the given minimum width and number of columns.- Parameters:
minWidth- the minimum width as a CSS string value after which this responsive step is to be appliedcolumns- the number of columns the layout should have
-
ResponsiveStep
public ResponsiveStep(String minWidth, int columns, FormLayout.ResponsiveStep.LabelsPosition labelsPosition)
Constructs a ResponsiveStep with the given minimum width, number of columns and label position.- Parameters:
minWidth- the minimum width as a CSS string value after which this responsive step is to be appliedcolumns- the number of columns the layout should havelabelsPosition- the position where label components are to be displayed inFormLayout.FormItems- See Also:
FormLayout.ResponsiveStep.LabelsPosition,FormLayout.FormItem
-
-
Method Detail
-
toJson
public elemental.json.JsonObject toJson()
- Specified by:
toJsonin interfacecom.vaadin.flow.component.JsonSerializable
-
readJson
public FormLayout.ResponsiveStep readJson(elemental.json.JsonObject value)
- Specified by:
readJsonin interfacecom.vaadin.flow.component.JsonSerializable
-
-