API reference: @salmonui/data/json
WirePivotHeaderinterface
import type { WirePivotHeader } from '@salmonui/data/json';Also exported from @salmonui/data.
interface WirePivotHeader {
readonly key: string;
readonly path: readonly Json[];
readonly label: string;
readonly depth: number;
readonly position: number;
readonly span: number;
readonly kind: 'member' | 'subtotal' | 'grandTotal' | 'value';
readonly field?: string;
readonly measure?: string;
readonly expandable?: true;
readonly expanded?: true;
}
A header node of the window (PivotHeaderNode without axis and children).
| Name | Signature | Description |
|---|---|---|
key | readonly key: string; |
|
path | readonly path: readonly Json[]; | |
label | readonly label: string; | |
depth | readonly depth: number; | |
position | readonly position: number; | |
span | readonly span: number; | |
kind | readonly kind: 'member' | 'subtotal' | 'grandTotal' | 'value'; | |
fieldoptional | readonly field?: string; | Field of the innermost member; omitted when null. |
measureoptional | readonly measure?: string; | Measure of value headers and leaves under them; omitted when null. |
expandableoptional | readonly expandable?: true; | Has children (expanded or not). |
expandedoptional | readonly expanded?: true; |