View as Markdown

API reference: @salmonui/core/export-model

exportCsvfunction

import { exportCsv } from '@salmonui/core/export-model';
function exportCsv<Row>(source: ExportSource<Row>, options?: CsvExportOptions<Row>, handlers?: ExportHandlers<Row, string>): Promise<ExportFile<string> | null>;

Exports a grid (an engine with the export module, or a model) as CSV text.