material-table
material-table copied to clipboard
How export only CSV
I wan to export only CSV , I don't want export PDF .
I've just had a look, it appears that there isn't an option to toggle individual export formats - I think this option should be added. In the meantime, one option is to downgrade material-table to v1.62.0 (export to PDF was introduced in v1.63.0).
@ollyrowe thank you so much .
You can do the following:
const options = {
exportButton: {
csv: true,
pdf: false,
},
};
<MaterialTable data={data} columns={columns} options={options} />;
With
const options = {
exportButton: {
csv: true,
pdf: true,
},
};
csv download works but not pdf.