UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the Data Grid components (MUI X).

18 lines 685 B
import { GridCsvExportOptions } from "../gridExport.js"; /** * The CSV export API interface that is available in the grid [[apiRef]]. */ export interface GridCsvExportApi { /** * Returns the grid data as a CSV string. * This method is used internally by `exportDataAsCsv`. * @param {GridCsvExportOptions} options The options to apply on the export. * @returns {string} The data in the CSV format. */ getDataAsCsv: (options?: GridCsvExportOptions) => string; /** * Downloads and exports a CSV of the grid's data. * @param {GridCsvExportOptions} options The options to apply on the export. */ exportDataAsCsv: (options?: GridCsvExportOptions) => void; }