API REFERENCE

getDataAsCsv

Returns an object with CSV text and output row/column counts. Read the string from its csv field.

What does this API do?

Returns an object with CSV text and output row/column counts. Read the string from its csv field.

Exact input and result types

typescript
getDataAsCsv(options?: Omit<CsvExportOptions<GridRow>, 'columns' | 'rows'>): Promise<CsvExportResult>
ArgumentsRequiredType
optionsOptionalOmit<CsvExportOptions<GridRow>, 'columns' | 'rows'>

The return type is Promise<CsvExportResult>.

Usage flow

After registering and initializing the Grid element, call grid.getDataAsCsv(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Read related types

Feature explanations and examples