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.
Type Parameters
Section titled “Type Parameters”T
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ collapsed: boolean; count: number; groupIndex: number; id: string; kind: "header"; title: string; }
collapsed
Section titled “collapsed”collapsed:
boolean
Whether the group is currently collapsed.
count:
number
Number of items in the group (shown dimmed after the title).
groupIndex
Section titled “groupIndex”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.
Type Literal
Section titled “Type Literal”{ groupIndex: number; item: T; itemIndex: number; kind: "item"; }
groupIndex
Section titled “groupIndex”groupIndex:
number
Index of the owning group in the source groups array.
item:
T
The item itself.
itemIndex
Section titled “itemIndex”itemIndex:
number
Index of this item within its group’s items array.
kind:
"item"