GridItemPos
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.
strategy​
RequiredDescription
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:
Value | Explanation |
---|---|
1 | auto (Automatically assign row and column coordinates.) |
2 | fix (Coordinates are specified by the user.) |
rowId​
RequiredDescription
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​
RequiredDescription
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