View as Markdown

API reference: @salmonui/data/json

RemotePivotEngineOptionsinterface

import type { RemotePivotEngineOptions } from '@salmonui/data/json';

Also exported from @salmonui/data.

interface RemotePivotEngineOptions {
    readonly model?: WirePivotModel;
    readonly where?: WirePredicate;
    readonly locale?: string;
    readonly window?: WirePivotWindow;
    readonly overscan?: {
        readonly rows?: number;
        readonly columns?: number;
    };
    readonly maxBlocks?: number;
    readonly formatValue?: (value: number, measure: string | null, model: WirePivotModel) => string;
}
RemotePivotEngineOptions members (7)
NameSignatureDescription
modeloptionalreadonly model?: WirePivotModel;
whereoptionalreadonly where?: WirePredicate;

Pre-aggregation filter over raw rows.

localeoptionalreadonly locale?: string;
windowoptionalreadonly window?: WirePivotWindow;

First window. Default 100 rows × 50 columns.

overscanoptionalreadonly overscan?: { readonly rows?: number; readonly columns?: number; };

Positions loaded beyond a requested window on each side. Default 40 rows, 10 columns.

maxBlocksoptionalreadonly maxBlocks?: number;

Loaded windows kept per result. Default 16.

formatValueoptionalreadonly formatValue?: (value: number, measure: string | null, model: WirePivotModel) => string;

Cell text (default: Intl.NumberFormat with model.formats[measure].number).