# PivotModelInput (@salmonui/pivot-table/engine)

> The PivotModelInput type of @salmonui/pivot-table/engine: Every field optional: what callers pass; normalizePivotModel() fills the defaults.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotModelInput

```ts
import type { PivotModelInput } from '@salmonui/pivot-table/engine';
```

Also exported from `@salmonui/pivot-table`.

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: type

```ts
type PivotModelInput = {
    readonly [K in keyof PivotModel]?: PivotModel[K];
};
```

Every field optional: what callers pass; `normalizePivotModel()` fills the defaults.

Members (16):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rows` | `rows?: readonly PivotAxisField[];` | optional, inherited |  |
| `columns` | `columns?: readonly PivotAxisField[];` | optional, inherited |  |
| `values` | `values?: readonly PivotValueField[];` | optional, inherited |  |
| `filters` | `filters?: readonly PivotAxisField[];` | optional, inherited |  |
| `filterBy` | `filterBy?: Readonly<Record<string, PivotFilter>>;` | optional, inherited |  |
| `sort` | `sort?: Readonly<Record<string, PivotMemberSort>>;` | optional, inherited |  |
| `valueSort` | `valueSort?: PivotValueSort \| null;` | optional, inherited |  |
| `groups` | `groups?: Readonly<Record<string, PivotGrouping>>;` | optional, inherited |  |
| `calculatedFields` | `calculatedFields?: readonly PivotCalculatedField[];` | optional, inherited |  |
| `formats` | `formats?: Readonly<Record<string, PivotFormat>>;` | optional, inherited |  |
| `conditionalFormats` | `conditionalFormats?: readonly PivotConditionalFormat[];` | optional, inherited |  |
| `expanded` | `expanded?: "all" \| readonly PivotMemberPath[];` | optional, inherited |  |
| `totals` | `totals?: PivotTotals;` | optional, inherited |  |
| `valuesPlacement` | `valuesPlacement?: { readonly axis: "columns" \| "rows"; readonly index: number; };` | optional, inherited |  |
| `showEmptyMembers` | `showEmptyMembers?: boolean;` | optional, inherited |  |
| `showValueHeader` | `showValueHeader?: boolean;` | optional, inherited |  |
