View as Markdown

API reference: @salmonui/data

GroupedRowEnvelopeinterface

import type { GroupedRowEnvelope } from '@salmonui/data';
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>)[];
    readonly pageInfo?: PageInfo;
}
GroupedRowEnvelope members (8)
NameSignatureDescription
kindreadonly kind: 'group';
keyreadonly key: Json;
columnIdreadonly columnId: ColumnId;
groupPathreadonly groupPath: readonly GroupPathSegment[];
countreadonly count: number;

Total descendants, not loaded descendants.

aggregatesoptionalreadonly aggregates?: AggregateValues;
itemsoptionalreadonly items?: readonly (Row | GroupedRowEnvelope<Row>)[];

Omitted for lazy groups.

pageInfooptionalreadonly pageInfo?: PageInfo;