Skip to content

GroupedRow

GroupedRow<T> = { collapsed: boolean; count: number; groupIndex: number; id: string; kind: "header"; title: string; } | { groupIndex: number; item: T; itemIndex: number; kind: "item"; }

Defined in: src/widgets/data/grouping.ts:27

One rendered line of a grouped list: a group header, or one item row.

T

{ collapsed: boolean; count: number; groupIndex: number; id: string; kind: "header"; title: string; }

collapsed: boolean

Whether the group is currently collapsed.

count: number

Number of items in the group (shown dimmed after the title).

groupIndex: number

Index of the owning group in the source groups array.

id: string

The group’s id (collapse key).

kind: "header"

title: string

The group’s title.


{ groupIndex: number; item: T; itemIndex: number; kind: "item"; }

groupIndex: number

Index of the owning group in the source groups array.

item: T

The item itself.

itemIndex: number

Index of this item within its group’s items array.

kind: "item"