# WirePivotHeader (@salmonui/data/json)

> The WirePivotHeader interface of @salmonui/data/json: A header node of the window (PivotHeaderNode without axis and children).

Canonical: https://salmonui.dev/docs/reference/data/json/WirePivotHeader

```ts
import type { WirePivotHeader } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: interface

```ts
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`).

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key: string;` |  | `PivotHeaderNode.key`. |
| `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';` |  |  |
| `field` | `readonly field?: string;` | optional | Field of the innermost member; omitted when null. |
| `measure` | `readonly measure?: string;` | optional | Measure of value headers and leaves under them; omitted when null. |
| `expandable` | `readonly expandable?: true;` | optional | Has children (expanded or not). |
| `expanded` | `readonly expanded?: true;` | optional |  |
