Skip to content

RenderRow

Discriminated union of row types in the flattened render model.

The grouping plugin transforms the grid’s row array into a flat list of RenderRow items that the virtualization engine iterates over. Each item is either a GroupRowModelItem (group header) or a DataRowModelItem (leaf data row). Use the kind property to discriminate:

for (const row of flattenedRows) {
if (row.kind === 'group') {
renderGroupHeader(row); // row is GroupRowModelItem
} else {
renderDataRow(row); // row is DataRowModelItem
}
}
type RenderRow = GroupRowModelItem | DataRowModelItem
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt