View as Markdown

API reference: @salmonui/pivot-table/engine

PivotAxisFieldinterface

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

Also exported from @salmonui/pivot-table.

interface PivotAxisField {
    readonly field: string;
    readonly caption?: string;
    readonly showSubTotals?: boolean;
}

A field placed on the rows, columns or filters axis.

PivotAxisField members (3)
NameSignatureDescription
fieldreadonly field: string;
captionoptionalreadonly caption?: string;
showSubTotalsoptionalreadonly showSubTotals?: boolean;

Per-field subtotal visibility; overrides totals.sub.