View as Markdown

API reference: @salmonui/data/json

RemotePivotHeaderinterface

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

Also exported from @salmonui/data.

interface RemotePivotHeader {
    readonly key: string;
    readonly axis: 'rows' | 'columns';
    readonly kind: 'member' | 'subtotal' | 'grandTotal' | 'value';
    readonly path: readonly Json[];
    readonly field: string | null;
    readonly measure: string | null;
    readonly label: string;
    readonly depth: number;
    readonly position: number;
    readonly span: number;
    readonly expandable: boolean;
    readonly expanded: boolean;
    readonly children?: readonly RemotePivotHeader[];
}

A header node as PivotHeaderNode.

RemotePivotHeader members (13)
NameSignatureDescription
keyreadonly key: string;
axisreadonly axis: 'rows' | 'columns';
kindreadonly kind: 'member' | 'subtotal' | 'grandTotal' | 'value';
pathreadonly path: readonly Json[];
fieldreadonly field: string | null;
measurereadonly measure: string | null;
labelreadonly label: string;
depthreadonly depth: number;
positionreadonly position: number;
spanreadonly span: number;
expandablereadonly expandable: boolean;
expandedreadonly expanded: boolean;
childrenoptionalreadonly children?: readonly RemotePivotHeader[];