API reference: @salmonui/data-grid
DataGridExportHookstype
import type { DataGridExportHooks } from '@salmonui/data-grid';type DataGridExportHooks<Row> = Pick<ExportHandlers<Row>, 'cell' | 'headerCell' | 'aggregateCell' | 'groupCaption' | 'detail'>;
Export hooks (per-cell, header cell, aggregate cell, group caption, detail).
| Name | Signature | Description |
|---|---|---|
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. |