View as Markdown

API reference: @salmonui/pivot-table/engine

PivotCellinterface

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

Also exported from @salmonui/pivot-table.

interface PivotCell {
    readonly rowIndex: number;
    readonly columnIndex: number;
    readonly rowKey: string;
    readonly columnKey: string;
    readonly measure: string | null;
    readonly value: number | null;
    readonly rawValue: number | null;
    readonly formattedValue: string;
    readonly kind: 'value' | 'subtotal' | 'grandTotal';
    readonly rowCount: number;
}
PivotCell members (10)
NameSignatureDescription
rowIndexreadonly rowIndex: number;
columnIndexreadonly columnIndex: number;
rowKeyreadonly rowKey: string;
columnKeyreadonly columnKey: string;
measurereadonly measure: string | null;
valuereadonly value: number | null;

Aggregated value (after calculated fields and show-values-as), or null for empty.

rawValuereadonly rawValue: number | null;

Raw aggregate before show-values-as.

formattedValuereadonly formattedValue: string;
kindreadonly kind: 'value' | 'subtotal' | 'grandTotal';
rowCountreadonly rowCount: number;

Number of raw rows behind the cell (drill through).