View as Markdown

API reference: @salmonui/export/xlsx

exportXlsxfunction

import { exportXlsx } from '@salmonui/export/xlsx';
function exportXlsx<Row>(source: ExportSource<Row> | readonly ExportSource<Row>[], options?: XlsxExportOptions<Row>, handlers?: ExportHandlers<Row>): Promise<ExportFile | null>;

Exports one grid, or several into one workbook (layout), as XLSX. Resolves to { fileName, mimeType, data }, or null when onBeforeExport prevents it. The writer module is loaded on first use.