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

> The PivotEngineOptions interface of @salmonui/pivot-table/engine.

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

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

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: interface

```ts
interface PivotEngineOptions<Row> {
    readonly data: readonly Row[];
    readonly fields?: readonly PivotFieldDefinition<Row>[];
    readonly model?: PivotModelInput;
    readonly locale?: string;
    readonly customAggregates?: Readonly<Record<string, PivotCustomAggregator>>;
    readonly getCellValue?: (cell: PivotCell) => number | null;
    readonly text?: PivotEngineText;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Row[];` |  |  |
| `fields` | `readonly fields?: readonly PivotFieldDefinition<Row>[];` | optional | Inferred from the first rows when omitted. |
| `model` | `readonly model?: PivotModelInput;` | optional |  |
| `locale` | `readonly locale?: string;` | optional |  |
| `customAggregates` | `readonly customAggregates?: Readonly<Record<string, PivotCustomAggregator>>;` | optional |  |
| `getCellValue` | `readonly getCellValue?: (cell: PivotCell) => number \| null;` | optional | Pure override of a cell value. |
| `text` | `readonly text?: PivotEngineText;` | optional |  |
