Skip to main content
.gridCellColumns(count: number): Component
count
number
required
The number of columns this cell should span.

Support

Usage

Spanning a header across all columns

Grid([
    GridRow([
        Text("Full Width Header")
            .font("headline")
            .gridCellColumns(3)
    ]),
    GridRow([
        Text("Col 1"),
        Text("Col 2"),
        Text("Col 3")
    ])
])

Two-column span in a three-column grid

Grid([
    GridRow([
        Text("A"),
        Text("B"),
        Text("C")
    ]),
    GridRow([
        Text("Wide Cell")
            .gridCellColumns(2),
        Text("D")
    ])
])

See Also