GridAutoFlow

Grid auto flow enumeration

Controls whether grid items are placed row-wise or column-wise, and whether the sparse or dense packing algorithm is used.

Example

import { Style, GridAutoFlow } from "taffy-layout"; const style = new Style(); style.gridAutoFlow = GridAutoFlow.Row; // Fill rows first style.gridAutoFlow = GridAutoFlow.Column; // Fill columns first style.gridAutoFlow = GridAutoFlow.RowDense; // Fill rows, pack densely

Enumeration Members

Enumeration MemberValueDescription
Column1Items are placed by filling each column in turn, adding new columns as necessary
ColumnDense3Combines Column with the dense packing algorithm
Row0Items are placed by filling each row in turn, adding new rows as necessary
RowDense2Combines Row with the dense packing algorithm

© 2026 ByteLand Technology Limited