Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / runGridExport

Function: runGridExport()

runGridExport<TRow>(controller, kind): Promise<ExportOutcome>

Defined in: datagrid-react/src/exportActions.ts:35

Run one export and download it.

Never throws: both callers render the failure rather than letting it reach an error boundary, because the common cause is a missing optional peer (exceljs, jspdf) — a message the user can act on, not a crash.

Type Parameters

TRow

TRow = GridRowData

Parameters

controller

DataGridController<TRow>

kind

ExportKind

Returns

Promise<ExportOutcome>