View as Markdown

API reference: @salmonui/core/export-model

ExportGroupRowinterface

import type { ExportGroupRow } from '@salmonui/core/export-model';
interface ExportGroupRow {
    readonly kind: 'group';
    readonly index: number;
    readonly id: RowId;
    readonly depth: number;
    readonly columnId: ColumnId;
    readonly headerText: string;
    readonly key: Json;
    readonly value: unknown;
    readonly formattedKey: string;
    readonly count: number;
    readonly caption: string;
    readonly aggregates: ExportAggregateCells;
}
ExportGroupRow members (12)
NameSignatureDescription
kindreadonly kind: 'group';
indexreadonly index: number;
idreadonly id: RowId;
depthreadonly depth: number;
columnIdreadonly columnId: ColumnId;
headerTextreadonly headerText: string;
keyreadonly key: Json;
valuereadonly value: unknown;
formattedKeyreadonly formattedKey: string;
countreadonly count: number;
captionreadonly caption: string;

Caption text (groupCaption hook, else Header: key - N items).

aggregatesreadonly aggregates: ExportAggregateCells;

groupCaption aggregates.