# PivotHeaderLike (@salmonui/data/server)

> The PivotHeaderLike interface of @salmonui/data/server: The structural header node both sides read (PivotHeaderNode).

Canonical: https://salmonui.dev/docs/reference/data/server/PivotHeaderLike

```ts
import type { PivotHeaderLike } from '@salmonui/data/server';
```

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

## Reference

Kind: interface

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

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key: string;` |  |  |
| `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;` |  |  |
| `children` | `readonly children?: readonly PivotHeaderLike[];` | optional |  |
