View as Markdown

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…
  • isPivotWindowSource
  • loadPivotResultPages 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

Types