I'm using material-table and i need to export a table, but the rendered columns doesn't appear in the exported file and the others yes it does,here is a part of my code:
{inputs.invoices.length ? <MaterialTable
columns={[
{ title: '#',export: true, render: (invoice) => {
return `${invoice.prefix}-${invoice.invoiceNumber}`;
}},
{ title: 'value',export: true, field: 'value' , type: 'currency'},
{ title: 'status',export: true, render: (invoice) => {
var invoiceStatus = invoice.idInvoiceStatus;
return (invoiceStatus.name ? ' ' + invoiceStatus.name : '');
}},
{ title: 'balance',export: true, field: 'balance' , type: 'currency'},
{ title: 'date',export: true, field: 'dateCreated' , type: 'datetime'}
]}
data={inputs.invoices}
title="Invoices List"
options={{
exportButton: true,
filter: true,
filterList: inputs.invoices,
headerStyle: {
backgroundColor: '#01579b',
color: '#FFF',
zIndex: '0'
}
}}
/> : null }
There is a way to solve this?