OptionalalignThe alignItems property specifies the default alignment for items inside the container.
It can be one of the following values:
OptionalalignThe alignContent property specifies how the content is aligned within the container when there is extra space.
It can be one of the following values:
OptionaljustifyThe justifyItems property specifies the default justification for items inside the container.
It can be one of the following values:
OptionaljustifyThe justifyContent property specifies how the content is justified within the container when there is extra space.
It can be one of the following values:
The rowGap property specifies the gap between rows in the layout.
The columnGap property specifies the gap between columns in the layout.
The verticalPadding property specifies the vertical padding inside the container.
The horizontalPadding property specifies the horizontal padding inside the container.
The topPadding property specifies the padding at the top of the container.
The rightPadding property specifies the padding at the right of the container.
The bottomPadding property specifies the padding at the bottom of the container.
The leftPadding property specifies the padding at the left of the container.
The horizontalSizing property specifies the horizontal sizing behavior of the container.
It can be one of the following values:
The verticalSizing property specifies the vertical sizing behavior of the container.
It can be one of the following values:
The dir property specifies the primary direction of the grid layout.
It can be either 'column' or 'row'.
ReadonlyrowsThe rows property represents the collection of rows in the grid.
This property is read-only.
ReadonlycolumnsThe columns property represents the collection of columns in the grid.
This property is read-only.
Adds a new row to the grid.
The type of the row to add.
Optionalvalue: numberThe value associated with the row type (optional).
Adds a new row to the grid at the specified index.
The index at which to add the row.
The type of the row to add.
Optionalvalue: numberThe value associated with the row type (optional).
Adds a new column to the grid.
The type of the column to add.
Optionalvalue: numberThe value associated with the column type (optional).
Adds a new column to the grid at the specified index.
The index at which to add the column.
The type of the column to add.
The value associated with the column type.
Sets the properties of a column at the specified index.
The index of the column to set.
The type of the column.
Optionalvalue: numberThe value associated with the column type (optional).
Sets the properties of a row at the specified index.
The index of the row to set.
The type of the row.
Optionalvalue: numberThe value associated with the row type (optional).
Appends a child element to the grid at the specified row and column.
The child element to append.
The row index where the child will be placed.
The column index where the child will be placed.
GridLayout represents a grid layout in the Penpot application, extending the common layout interface. It includes properties and methods to manage rows, columns, and child elements within the grid.