View as Markdown

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).

DataGridExportHooks members (5, 5 inherited)
NameSignatureDescription
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.

aggregateCelloptionalinheritedaggregateCell?: ((ctx: ExportAggregateCellHookContext) => void | { readonly text?: string; readonly style?: ExportCellStyle; } | null | undefined);

Per aggregate cell (grid footer, group footer, group caption).

groupCaptionoptionalinheritedgroupCaption?: ((ctx: ExportGroupCaptionHookContext) => void | string | null | undefined);

Group caption text.

detailoptionalinheriteddetail?: ((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.