View as Markdown

API reference: @salmonui/pivot-table/engine

PivotModelinterface

import type { PivotModel } from '@salmonui/pivot-table/engine';

Also exported from @salmonui/pivot-table.

interface PivotModel {
    readonly rows: readonly PivotAxisField[];
    readonly columns: readonly PivotAxisField[];
    readonly values: readonly PivotValueField[];
    readonly filters: readonly PivotAxisField[];
    readonly filterBy: Readonly<Record<string, PivotFilter>>;
    readonly sort: Readonly<Record<string, PivotMemberSort>>;
    readonly valueSort: PivotValueSort | null;
    readonly groups: Readonly<Record<string, PivotGrouping>>;
    readonly calculatedFields: readonly PivotCalculatedField[];
    readonly formats: Readonly<Record<string, PivotFormat>>;
    readonly conditionalFormats: readonly PivotConditionalFormat[];
    readonly expanded: readonly PivotMemberPath[] | 'all';
    readonly totals: PivotTotals;
    readonly valuesPlacement: {
        readonly axis: 'columns' | 'rows';
        readonly index: number;
    };
    readonly showEmptyMembers: boolean;
    readonly showValueHeader?: boolean;
}
PivotModel members (16)
NameSignatureDescription
rowsreadonly rows: readonly PivotAxisField[];
columnsreadonly columns: readonly PivotAxisField[];
valuesreadonly values: readonly PivotValueField[];
filtersreadonly filters: readonly PivotAxisField[];
filterByreadonly filterBy: Readonly<Record<string, PivotFilter>>;
sortreadonly sort: Readonly<Record<string, PivotMemberSort>>;
valueSortreadonly valueSort: PivotValueSort | null;
groupsreadonly groups: Readonly<Record<string, PivotGrouping>>;
calculatedFieldsreadonly calculatedFields: readonly PivotCalculatedField[];
formatsreadonly formats: Readonly<Record<string, PivotFormat>>;
conditionalFormatsreadonly conditionalFormats: readonly PivotConditionalFormat[];
expandedreadonly expanded: readonly PivotMemberPath[] | 'all';
totalsreadonly totals: PivotTotals;
valuesPlacementreadonly valuesPlacement: { readonly axis: 'columns' | 'rows'; readonly index: number; };
showEmptyMembersreadonly showEmptyMembers: boolean;
showValueHeaderoptionalreadonly showValueHeader?: boolean;