jeomjeom
jeomjeom

Reputation: 11

Material Table ExportButton is missing from the options props

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

Upvotes: 1

Views: 671

Answers (1)

NicoE
NicoE

Reputation: 4873

Try setting MaterialTable options like this:

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

Here is a link to a working sandbox.

Upvotes: 0

Related Questions