react-table-plugins icon indicating copy to clipboard operation
react-table-plugins copied to clipboard

Allow export without accessor

Open pszafer opened this issue 3 years ago • 0 comments

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;

pszafer avatar Jan 19 '22 09:01 pszafer