react-table-plugins
react-table-plugins copied to clipboard
Allow export without accessor
Currently checking if column is exportable is done like that
const canExport = accessor
? getFirstDefined(
column.disableExport === true ? false : undefined,
disableExport === true ? false : undefined,
true
)
: false;
Wouldn't be better to do something like this:
const canExport = accessor
? getFirstDefined(
column.disableExport === true ? false : undefined,
disableExport === true ? false : undefined,
true
)
: column.getCellExportValue ? true: false;