View as Markdown

API reference: @salmonui/gantt

GanttGridExportOptionstype

import type { GanttGridExportOptions } from '@salmonui/gantt';
type GanttGridExportOptions<Row> = Pick<DataGridExportOptions<Row>, 'fileName' | 'cell' | 'headerCell' | 'tree' | 'includeHiddenColumns' | 'columns'>;

Excel / CSV export options: the Data Grid export options and hooks.

GanttGridExportOptions members (6, 6 inherited)
NameSignatureDescription
includeHiddenColumnsoptionalinheritedincludeHiddenColumns?: boolean;

Include hidden columns. Default false.

columnsoptionalinheritedcolumns?: readonly ExportColumnOption[];

Export-only columns, in order.

fileNameoptionalinheritedfileName?: string;

Download name; the format extension is added when missing. Default export.

treeoptionalinheritedtree?: "all" | "expanded";

Tree mode rows: expanded (default) exports the visible rows in pre-order; all exports every kept row regardless of expansion (XLSX outlineCollapsed then keeps the collapsed state).

celloptionalinheritedcell?: ((ctx: ExportCellHookContext<Row>) => void | ExportCellPatch | null | undefined);

Per data cell. Not called when unset.

headerCelloptionalinheritedheaderCell?: ((ctx: ExportHeaderCellHookContext<Row>) => void | { readonly text?: string; readonly style?: ExportCellStyle; } | null | undefined);

Per header cell.