View as Markdown

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

streamCsvfunction

import { streamCsv } from '@salmonui/data-grid/engine/export';
function streamCsv<Row>(model: ExportModel<Row>, options?: CsvStreamOptions): AsyncGenerator<string, void, undefined>;

Streams the model as CSV chunks. Each chunk is complete lines; chunks end at chunkRows rows or after sliceMs, then the iterator awaits yield before producing the next one. Pipe into a WritableStream, a file, or collect into a Blob.