grid
Overview
The grid UI component gives developers more control over the layout of UI components in a view. This is useful when there is a need to customize the width of UI components respective to other components on the view (where previously columns kept each component’s width equal). grid could also be used to layout components in a way that is similar to layout to icons on a phone’s homescreen. Another use case is to keep more content visible on the screen, where previously column content overflowed and became scrollable.
Version compatibility
grid was introduced in version 4.85.0 of the JourneyApps Runtime.
A grid contains cells to specify the size and position of UI components:
Basic Example

Have a look at some additional examples here:
📖grid ExamplesLimitations
Nesting a
gridinside anobject-repeatis not currently supported.
Standard Attributes
None
Advanced Attributes
column-count
column-countOptional
Type: integer
Default: Is automatically determined based on the minimum allowed column width.
Specify the number of columns that the grid will generate.
Note:
If
column-counthas been specified and the columns do not fit inside the screen (such as on small devices) then the grid will become horizontally scrollable.If
column-counthas not been specified, i.e. the column count is automatically determined, the grid component will try and reduce the number of columns to adhere to the minimum allowed column width as the screen size is reduced.

column-min-width
column-min-widthOptional
Type: integer
Default: 250 px
Specify the minimum allowed width (in pixels) for the grid’s columns.

column-order
column-orderVersion compatibility
column-order was introduced in version 4.86.1 of the JourneyApps Runtime.
Optional
Type: left-to-right| right-to-left
Default: left-to-right
Specify the order of the grid's columns.

show-if and hide-if
show-ifhide-ifshow-if and hide-ifComponent Methods
None
Last updated