API reference: @salmonui/data-grid
DataGridCsvExportOptionsinterface
import type { DataGridCsvExportOptions } from '@salmonui/data-grid';interface DataGridCsvExportOptions<Row> extends DataGridExportOptions<Row>, CsvOptions {
}
| Name | Signature | Description |
|---|---|---|
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). |
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: |
celloptionalinherited | cell?: ((ctx: ExportCellHookContext<Row>) => void | ExportCellPatch | null | undefined); | Per data cell. Not called when unset. |
headerCelloptionalinherited | headerCell?: ((ctx: ExportHeaderCellHookContext<Row>) => void | { readonly text?: string; readonly style?: ExportCellStyle; } | null | undefined); | Per header cell. |
aggregateCelloptionalinherited | aggregateCell?: ((ctx: ExportAggregateCellHookContext) => void | { readonly text?: string; readonly style?: ExportCellStyle; } | null | undefined); | Per aggregate cell (grid footer, group footer, group caption). |
groupCaptionoptionalinherited | groupCaption?: ((ctx: ExportGroupCaptionHookContext) => void | string | null | undefined); | Group caption text. |
detailoptionalinherited | detail?: ((ctx: ExportDetailContext<Row>) => void | ExportDetail | null | undefined); | A detail block written after a data row (text lines or a child table), or null for none. |
downloadoptionalinherited | download?: boolean; | Downloads the file (default true); |