Material Table ExportButton is missing from the options props

545 views Asked by At

I encountered an issue on MaterialTable's export button. It didn't show up in the table after adding <MaterialTable options={{exportButton: true}} />

I discovered that exportButton wasn't found in the Options interface, when I stepped into the options props in the MaterialTable. To tackle with this issue, I've tried to remove the node_modules folder and install it again.

Apparently, it doesn't seem to solve the issue. This is the list of the elements shown in my Options interface.

enter image description here

1

There are 1 answers

3
NicoE On

Try setting MaterialTable options like this:

options={{
    // ..other options
    exportButton: {
      csv: true,
      pdf: false
    }
}}

Here is a link to a working sandbox.