API reference: @salmonui/data-grid/engine
GroupedRowEnvelopeinterface
import type { GroupedRowEnvelope } from '@salmonui/data-grid/engine';interface GroupedRowEnvelope<Row> {
readonly kind: 'group';
readonly key: Json;
readonly columnId: ColumnId;
readonly groupPath: readonly GroupPathSegment[];
readonly count: number;
readonly aggregates?: AggregateValues;
readonly items?: readonly (Row | GroupedRowEnvelope<Row>)[];
}
Group envelope of a lazy group load (DataSourceRequest.groupPath).
| Name | Signature | Description |
|---|---|---|
kind | readonly kind: 'group'; | |
key | readonly key: Json; | |
columnId | readonly columnId: ColumnId; | |
groupPath | readonly groupPath: readonly GroupPathSegment[]; | |
count | readonly count: number; | Total descendants (data rows), not loaded descendants. |
aggregatesoptional | readonly aggregates?: AggregateValues; | |
itemsoptional | readonly items?: readonly (Row | GroupedRowEnvelope<Row>)[]; | Omitted for lazy groups. |