API reference: @salmonui/core/export-model
ExportOptionsinterface
import type { ExportOptions } from '@salmonui/core/export-model';interface ExportOptions<Row> {
readonly pages?: 'current' | 'all';
readonly includeHiddenColumns?: boolean;
readonly rows?: readonly Row[];
readonly columns?: readonly ExportColumnOption[];
readonly fileName?: string;
readonly hierarchy?: 'expanded' | 'all' | 'none';
readonly tree?: 'expanded' | 'all';
}
Options shared by exportCsv, exportXlsx, and exportPdf.
| Name | Signature | Description |
|---|---|---|
pagesoptional | readonly pages?: 'current' | 'all'; |
|
includeHiddenColumnsoptional | readonly includeHiddenColumns?: boolean; | Include hidden columns. Default false. |
rowsoptional | readonly rows?: readonly Row[]; | Rows to export instead of the grid rows (for example the selected rows), with the grid's columns. |
columnsoptional | readonly columns?: readonly ExportColumnOption[]; | Export-only columns, in order. |
fileNameoptional | readonly fileName?: string; | Download name; the format extension is added when missing. Default |
hierarchyoptional | readonly hierarchy?: 'expanded' | 'all' | 'none'; | Detail and child-grid rows: |
treeoptional | readonly tree?: 'expanded' | 'all'; | Tree mode rows: |