View as Markdown

API reference: @salmonui/core/data

GroupedRowEnvelopeinterface

import type { GroupedRowEnvelope } from '@salmonui/core/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>)[];
}

Group envelope of a lazy group load (DataSourceRequest.groupPath).

GroupedRowEnvelope members (7)
NameSignatureDescription
kindreadonly kind: 'group';
keyreadonly key: Json;
columnIdreadonly columnId: ColumnId;
groupPathreadonly groupPath: readonly GroupPathSegment[];
countreadonly count: number;

Total descendants (data rows), not loaded descendants.

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

Omitted for lazy groups.