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.
| Name | Signature | Description |
|---|---|---|
key | readonly key: string; | |
axis | readonly axis: 'rows' | 'columns'; | |
kind | readonly kind: 'member' | 'subtotal' | 'grandTotal' | 'value'; | |
path | readonly path: readonly Json[]; | |
field | readonly field: string | null; | |
measure | readonly measure: string | null; | |
label | readonly label: string; | |
depth | readonly depth: number; | |
position | readonly position: number; | |
span | readonly span: number; | |
expandable | readonly expandable: boolean; | |
expanded | readonly expanded: boolean; | |
childrenoptional | readonly children?: readonly RemotePivotHeader[]; |