API reference: @salmonui/data-grid
DataGridPdfExportOptionsinterface
import type { DataGridPdfExportOptions } from '@salmonui/data-grid';interface DataGridPdfExportOptions<Row> extends DataGridExportOptions<Row> {
readonly [option: string]: unknown;
}
PDF options: the shared options plus the PdfOptions of @salmonui/export/pdf (orientation, pageSize, header, footer, font, ...), passed through.
| Name | Signature | Description |
|---|---|---|
treeoptionalinherited | tree?: "all" | "expanded"; | Tree mode rows: |
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: |
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); |