API reference: @salmonui/export/xlsx
XlsxOptionsinterface
import type { XlsxOptions } from '@salmonui/export/xlsx';interface XlsxOptions extends ExportWriterOptions {
readonly sheetName?: string;
readonly sheetNames?: readonly string[];
readonly layout?: 'sheets' | 'stacked';
readonly gap?: number;
readonly values?: 'typed' | 'text';
readonly includeHeaders?: boolean;
readonly freezeHeader?: boolean;
readonly outlineCollapsed?: boolean;
readonly mergeRepeatedValues?: boolean;
readonly compress?: boolean;
readonly header?: XlsxContent;
readonly footer?: XlsxContent;
}
XLSX writer options.
| Name | Signature | Description |
|---|---|---|
stylesoptionalinherited | styles?: ExportStyles; | |
sliceMsoptionalinherited | sliceMs?: number; | Time slice in ms before the writer yields to the event loop. Default 25. |
yieldoptionalinherited | yield?: YieldFn; | Awaited between slices. Default: a macrotask. |
sheetNameoptional | readonly sheetName?: string; | Sheet name of a single-sheet workbook (default |
sheetNamesoptional | readonly sheetNames?: readonly string[]; | Sheet names per grid with |
layoutoptional | readonly layout?: 'sheets' | 'stacked'; | Several grids in one workbook: one sheet each ( |
gapoptional | readonly gap?: number; | Empty rows between stacked grids. Default 5. |
valuesoptional | readonly values?: 'typed' | 'text'; |
|
includeHeadersoptional | readonly includeHeaders?: boolean; | Header rows. Default true. |
freezeHeaderoptional | readonly freezeHeader?: boolean; | Freeze the header rows (in addition to pinned columns). Default false. |
outlineCollapsedoptional | readonly outlineCollapsed?: boolean; | Tree mode: with
|
mergeRepeatedValuesoptional | readonly mergeRepeatedValues?: boolean; | Merge repeated values in consecutive data rows. Default false. |
compressoptional | readonly compress?: boolean; | Deflate entries (when the platform has |
headeroptional | readonly header?: XlsxContent; | Rows above the grid, then |
footeroptional | readonly footer?: XlsxContent; |
|