View as Markdown

API reference: @salmonui/data-grid/engine/export-server

ServerExportHandlerstype

import type { ServerExportHandlers } from '@salmonui/data-grid/engine/export-server';
type ServerExportHandlers<Row> = Omit<ExportHandlers<Row>, 'onExport'>;

Hooks and onBeforeExport; there is no file promise, so no onExport.

ServerExportHandlers members (6, 6 inherited)
NameSignatureDescription
onBeforeExportoptionalinheritedonBeforeExport?: ((event: BeforeExportEvent) => void);

Synchronous; preventDefault() cancels.

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.