@StudioComponent(caption="ResponsiveGridLayout", category="Containers", xmlElement="responsiveGridLayout", icon="io/jmix/ui/icon/container/responsiveGridLayout.svg", canvasBehaviour=CONTAINER, containerType=RESPONSIVE_GRID, unsupportedProperties={"responsive","width"}, documentationURL="https://docs.jmix.io/jmix/%VERSION%/backoffice-ui/vcl/containers/responsive-grid-layout.html") public interface ResponsiveGridLayout extends Component, Component.BelongToFrame, HasComponents, LayoutClickNotifier, HasHtmlSanitizer
Each component must be located in the corresponding ResponsiveGridLayout.Column.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResponsiveGridLayout.AlignItems
Represents the default behavior for how flex items are laid out along the cross axis on the current row.
|
static class |
ResponsiveGridLayout.AlignSelf
Represents the default behavior for how individual flex item is laid out along the cross axis.
|
static class |
ResponsiveGridLayout.Breakpoint
Breakpoint representing minimum viewport widths used in media query ranges.
|
static interface |
ResponsiveGridLayout.Column
Interface defining a grid column.
|
static class |
ResponsiveGridLayout.ColumnsValue
Class containing information about logical columns number that a column occupies.
|
static class |
ResponsiveGridLayout.ContainerType
Container type representing possible basic container styles.
|
static interface |
ResponsiveGridLayout.GridElement
Interface to provide default functionality for grid elements.
|
static class |
ResponsiveGridLayout.JustifyContent
Represents the default behavior for how flex items are laid out along the main axis on the current row.
|
static class |
ResponsiveGridLayout.OffsetValue
Class containing information about the number of columns by which
to move a column to the right.
|
static class |
ResponsiveGridLayout.OrderValue
Class containing information for controlling the visual order of a column.
|
static interface |
ResponsiveGridLayout.Row
Interface defining a grid row.
|
static class |
ResponsiveGridLayout.RowColumnsValue
Class containing information about the number of columns in the row.
|
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperLayoutClickNotifier.LayoutClickEvent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
ResponsiveGridLayout.Row |
addRow()
Creates a new
ResponsiveGridLayout.Row and adds it to this responsive grid layout. |
ResponsiveGridLayout.Row |
addRow(int index)
Creates a new
ResponsiveGridLayout.Row and adds it to the given position in responsive grid layout. |
ResponsiveGridLayout.ContainerType |
getContainerType() |
java.util.List<ResponsiveGridLayout.Row> |
getRows() |
void |
removeAllRows()
Removes all rows from this responsive grid layout.
|
void |
removeRow(ResponsiveGridLayout.Row row)
Removes the given row from this responsive grid layout.
|
void |
setContainerType(ResponsiveGridLayout.ContainerType containerType)
Sets the container type.
|
getFrame, setFrameaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamaddLayoutClickListenerisHtmlSanitizerEnabled, setHtmlSanitizerEnabledstatic final java.lang.String NAME
ResponsiveGridLayout.Row addRow()
ResponsiveGridLayout.Row and adds it to this responsive grid layout.java.lang.IllegalStateException - if this responsive grid layout has been shown on a screenResponsiveGridLayout.Row addRow(int index)
ResponsiveGridLayout.Row and adds it to the given position in responsive grid layout.index - the position of the new row. The rows that are
currently in and after the position are shifted forwardsjava.lang.IllegalStateException - if this responsive grid layout has been shown on a screenvoid removeRow(ResponsiveGridLayout.Row row)
row - the row to be removedjava.lang.IllegalStateException - if this responsive grid layout has been shown on a screenvoid removeAllRows()
java.lang.IllegalStateException - if this responsive grid layout has been shown on a screenjava.util.List<ResponsiveGridLayout.Row> getRows()
ResponsiveGridLayout.ContainerType getContainerType()
null@StudioProperty(type=ENUMERATION, defaultValue="FLUID", options={"FLUID","FIXED"}) void setContainerType(ResponsiveGridLayout.ContainerType containerType)
The built-in container types are:
ResponsiveGridLayout.ContainerType.FLUID - a full width container,
spanning the entire width of the viewport. Used by default.ResponsiveGridLayout.ContainerType.FIXED - a fixed-width container,
meaning its max-width changes at each breakpoint.containerType - the container type to switch to, not nulljava.lang.IllegalStateException - if this responsive grid layout has been shown on a screen