Skip to Content

Grid

Arranges a sequence of items in a fixed-column grid. Rendered as a leaf element: the painter builds the native UIToolkit VE subtree directly, using explicit flex properties to guarantee equal-width columns.

Constructor

Grid

Creates a Grid element.

ParameterDescription
columnCountNumber of columns per row. Must be greater than zero.
itemsThe data source.
itemBuilderFactory that turns one item into an Element.
columnSpacingGap between cells within a row.
rowSpacingGap between rows.
keyAn optional key for reconciliation identity.

Properties

ColumnCount

Number of columns per row.

ColumnSpacing

Horizontal spacing between cells. Defaults to 0.

ItemBuilder

Builds the element for a single item.

Items

The data items to render.

RowSpacing

Vertical spacing between rows. Defaults to 0.

Last updated on