View as Markdown

API reference: @salmonui/data/server

PivotHeaderLikeinterface

import type { PivotHeaderLike } from '@salmonui/data/server';
interface PivotHeaderLike {
    readonly key: string;
    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 PivotHeaderLike[];
}

The structural header node both sides read (PivotHeaderNode).

PivotHeaderLike members (12)
NameSignatureDescription
keyreadonly key: string;
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 PivotHeaderLike[];