API reference: @salmonui/export/pivot
PivotCsvStreamOptionsinterface
import type { PivotCsvStreamOptions } from '@salmonui/export/pivot';interface PivotCsvStreamOptions extends PivotExportOptions, CsvStreamOptions {
readonly signal?: unknown;
}
| Name | Signature | Description |
|---|---|---|
signaloptional | readonly signal?: unknown; | |
delimiteroptionalinherited | delimiter?: string; | Default |
lineBreakoptionalinherited | lineBreak?: string; | Default |
includeHeadersoptionalinherited | includeHeaders?: boolean; | Header line with the leaf header texts. Default true. |
valuesoptionalinherited | values?: "formatted" | "raw"; |
|
aggregateRowsoptionalinherited | aggregateRows?: boolean; | Group caption, group footer, and grid footer aggregate lines. Default true. |
bomoptionalinherited | bom?: boolean; | Prefix a UTF-8 byte order mark (Excel detects UTF-8). Default false. |
quoteAlloptionalinherited | quoteAll?: boolean; | Quote every field instead of only those that need it. Default false. |
escapeFormulasoptionalinherited | escapeFormulas?: boolean; | Neutralize spreadsheet formulas in text cells: a leading |
treeDepthColumnoptionalinherited | treeDepthColumn?: string | boolean; | Tree mode: a leading column with each row's tree depth (0 for
roots). |
chunkRowsoptionalinherited | chunkRows?: number; | Upper bound of rows per chunk. Default 5,000. |
sliceMsoptionalinherited | sliceMs?: number; | Time slice per chunk in ms; a chunk ends early when it runs longer. Default 25. |
yieldoptionalinherited | yield?: (() => Promise<void>); | Awaited between chunks. Default: a macrotask ( |
fileNameoptionalinherited | fileName?: string; | File name; the extension is added. Default |
rowLayoutoptionalinherited | rowLayout?: "compact" | "tabular"; |
|
rowHeadersoptionalinherited | rowHeaders?: boolean; | Row header columns. Default true. |
rowHeaderCaptionoptionalinherited | rowHeaderCaption?: string; | Header text of the row header column(s). Default: the row field captions. |
rowHeaderWidthoptionalinherited | rowHeaderWidth?: number; | Column widths in CSS px. Defaults 200 (row headers) and 110. |
columnWidthoptionalinherited | columnWidth?: number; | |
includeColumnoptionalinherited | includeColumn?: ((header: PivotExportHeader, index: number) => boolean); | Exported value columns (hidden columns, current page only). Default every leaf column. |
rowRangeoptionalinherited | rowRange?: readonly [number, number]; | Exported leaf row positions |
includeRowoptionalinherited | includeRow?: ((header: PivotExportHeader, index: number) => boolean); | Exported rows. Default every visible leaf row. |
pivotStylesoptionalinherited | pivotStyles?: PivotExportStyles; | Subtotal, grand total and row header styles (merged under conditional formats and the hook). |
celloptionalinherited | cell?: ((ctx: PivotExportCellContext) => void | ExportCellOverride | null | undefined); | Per body cell. |
headerCelloptionalinherited | headerCell?: ((ctx: PivotExportHeaderContext) => void | { readonly text?: string; readonly style?: ExportCellStyle; } | null | undefined); | Per header cell. |
windowCellsoptionalinherited | windowCells?: number; | Window sources: cells per |
localeoptionalinherited | locale?: string; | Locale of the model (number formats in PDF / CSV come from |