The CSV export API interface that is available in the grid [[apiRef]].

interface GridCsvExportApi {
    exportDataAsCsv: ((options?: GridCsvExportOptions) => void);
    getDataAsCsv: ((options?: GridCsvExportOptions) => string);
}

Hierarchy (view full)

Properties

exportDataAsCsv: ((options?: GridCsvExportOptions) => void)

Downloads and exports a CSV of the grid's data.

Type declaration

    • (options?): void
    • Parameters

      Returns void

getDataAsCsv: ((options?: GridCsvExportOptions) => string)

Returns the grid data as a CSV string. This method is used internally by exportDataAsCsv.

Type declaration

    • (options?): string
    • Parameters

      Returns string

      The data in the CSV format.