Skip to main content

GridItemPos

Typeobject
Backlinks1

In grid layout, the position of grid items is determined by the grid lines defined by the rows and columns of the grid container. Grid rows and grid columns are used to specify the properties for positioning grid items within the grid.

PropertyTypeRequired
classstringRequired
strategyintegerRequired
rowIdintegerRequired
columnIdintegerRequired

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"gridItemPos"

strategy​

Required

Description

This property is used to define the position of grid items on the row and column axes in a grid. By default, grid items will be automatically placed from left to right in the direction of rows. However, you can also specify specific fixed positions for grid items on both rows and columns.

Type

integer

Value

enum: the value of this property must be equal to one of the following values:

ValueExplanation
1
auto (Automatically assign row and column coordinates.)
2
fix (Coordinates are specified by the user.)

rowId​

Required

Description

Takes effect only in fix mode, specifies the element start row coordinates. Value start with 0.

Type

integer

Value

minimum: the value of this number must greater than or equal to: 0

columnId​

Required

Description

Takes effect only in fix mode, specifies the element start column coordinates. Value start with 0.

Type

integer

Value

minimum: the value of this number must greater than or equal to: 0