API reference
@salmonui/export/pivot
20 exported symbols: 5 functions, 12 interfaces and 3 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/export/pivot';Functions
createPivotExportModelThe export model of a pivot result: writeXlsx, writePdf, writeCsv and streamCsv accept it. numberFormat turns the model's formats into Excel codes (the XLSX en…exportPivotExports a pivot result (or a window source, paged) as XLSX (default; several results become one sheet each, or xlsx.layout: 'stacked'), PDF or CSV. XLSX: an ou…isPivotWindowSourceloadPivotResultPages a window source into one in-memory result: all columns, row windows of windowCells cells. Values are kept as numbers (8 bytes per cell) and the cell text…streamPivotCsvStreams a pivot as CSV chunks (large results). A result streams through streamCsv; a window source is paged one row window at a time and never held whole.
Interfaces
PivotCsvStreamOptionsPivotExportCellA value cell (PivotCell).PivotExportCellContextPivotExportHandlersPivotExportHeaderA header node (PivotHeaderNode).PivotExportHeaderContextPivotExportModelLikeThe part of PivotModel the export reads.PivotExportOptionsOptions of every pivot export format.PivotExportResultA pivot result (PivotResult, a remote snapshot, or a reference handler compute() result).PivotExportStylesPivotFileExportOptionsexportPivot() options: the pivot options, the format, and that format's writer options.PivotWindowSourceA remote result paged by window (RemotePivotEngine of @salmonui/data).
Types
PivotExportFormatPivotExportSourcePivotNumberFormatCodeExcel number format code of Intl.NumberFormat options (supplied by the XLSX writer).