API reference: @salmonui/export/xlsx
XlsxExportOptionsinterface
import type { XlsxExportOptions } from '@salmonui/export/xlsx';interface XlsxExportOptions<Row> extends ExportOptions<Row>, XlsxOptions {
}
| Name | Signature | Description |
|---|---|---|
pagesoptionalinherited | pages?: "all" | "current"; |
|
includeHiddenColumnsoptionalinherited | includeHiddenColumns?: boolean; | Include hidden columns. Default false. |
rowsoptionalinherited | rows?: readonly Row[]; | Rows to export instead of the grid rows (for example the selected rows), with the grid's columns. |
columnsoptionalinherited | columns?: readonly ExportColumnOption[]; | Export-only columns, in order. |
fileNameoptionalinherited | fileName?: string; | Download name; the format extension is added when missing. Default |
hierarchyoptionalinherited | hierarchy?: "all" | "expanded" | "none"; | Detail and child-grid rows: |
treeoptionalinherited | tree?: "all" | "expanded"; | Tree mode rows: |
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. |
sheetNameoptionalinherited | sheetName?: string; | Sheet name of a single-sheet workbook (default |
sheetNamesoptionalinherited | sheetNames?: readonly string[]; | Sheet names per grid with |
layoutoptionalinherited | layout?: "sheets" | "stacked"; | Several grids in one workbook: one sheet each ( |
gapoptionalinherited | gap?: number; | Empty rows between stacked grids. Default 5. |
valuesoptionalinherited | values?: "text" | "typed"; |
|
includeHeadersoptionalinherited | includeHeaders?: boolean; | Header rows. Default true. |
freezeHeaderoptionalinherited | freezeHeader?: boolean; | Freeze the header rows (in addition to pinned columns). Default false. |
outlineCollapsedoptionalinherited | outlineCollapsed?: boolean; | Tree mode: with
|
mergeRepeatedValuesoptionalinherited | mergeRepeatedValues?: boolean; | Merge repeated values in consecutive data rows. Default false. |
compressoptionalinherited | compress?: boolean; | Deflate entries (when the platform has |
headeroptionalinherited | header?: XlsxContent; | Rows above the grid, then |
footeroptionalinherited | footer?: XlsxContent; |
|