options

exportMenu#

  • Array of objects
  • Objects have the following shape:
{ label: string, exportFunc: (columns, data) => void }

In order to make things easier on you, we have provided the following default export utility functions.

info

You will need to install @material-table/exporters to use the "built-in", default export methods

// ...
import { ExportCsv, ExportPdf } from '@material-table/exporters';
<MaterialTable
// ...
options={{
// ...
exportMenu: [{
label: 'Export PDF',
exportFunc: (cols, datas) => ExportPdf(cols, datas, 'myPdfFileName')
}, {
label: 'Export CSV',
exportFunc: (cols, datas) => ExportCsv(cols, datas, 'myCsvFileName')
}]
}}
/>

exportButton#

This property has been deprecated

exportCsv#

This property has been deprecated

exportPdf#

This property has been deprecated

exportDelimiter#

This property has been deprecated