API reference: @salmonui/pivot-table/engine
PivotEngineOptionsinterface
import type { PivotEngineOptions } from '@salmonui/pivot-table/engine';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;
}
| Name | Signature | Description |
|---|---|---|
data | readonly data: readonly Row[]; | |
fieldsoptional | readonly fields?: readonly PivotFieldDefinition<Row>[]; | Inferred from the first rows when omitted. |
modeloptional | readonly model?: PivotModelInput; | |
localeoptional | readonly locale?: string; | |
customAggregatesoptional | readonly customAggregates?: Readonly<Record<string, PivotCustomAggregator>>; | |
getCellValueoptional | readonly getCellValue?: (cell: PivotCell) => number | null; | Pure override of a cell value. |
textoptional | readonly text?: PivotEngineText; |