View as Markdown

API reference: @salmonui/data/json

RemotePivotCellinterface

import type { RemotePivotCell } from '@salmonui/data/json';

Also exported from @salmonui/data.

interface RemotePivotCell {
    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;
}

A cell as PivotCell. rawValue equals value and rowCount is 0: use drillThrough.

RemotePivotCell members (10)
NameSignatureDescription
rowIndexreadonly rowIndex: number;
columnIndexreadonly columnIndex: number;
rowKeyreadonly rowKey: string;
columnKeyreadonly columnKey: string;
measurereadonly measure: string | null;
valuereadonly value: number | null;
rawValuereadonly rawValue: number | null;
formattedValuereadonly formattedValue: string;
kindreadonly kind: 'value' | 'subtotal' | 'grandTotal';
rowCountreadonly rowCount: number;