react-data-table-component-extensions
react-data-table-component-extensions copied to clipboard
Uncaught Error: selector must be a . delimted string eg (my.property)
When I trying to export or print a document throw this error on console .
Uncaught Error: selector must be a . delimted string eg (my.property)
at getProperty (utilities.js:61:1)
at utilities.js:106:1
at Array.forEach (
I Have the same Issue
I have to react-data-table-component version = "^7.5.2" and "react-data-table-component-extensions": "^1.6.0"
This happened to me when i want to export, and i solved to problem like this
columns = [ { name: 'Folio', selector: row => row.Cfdi_Folio, cellExport: row => row.Cfdi_Folio, sortable: true }, ... ]
You must have this format in selector (selector: row => row.title ) Add to cellExport if you want to export
i followed to documentation
https://www.npmjs.com/package/@innenpkg/react-data-table-component-extensions
I Have the same Issue
You have to define cellExport function in columns array.
const columns = [ { id: "id", name: "ID", selector: (row) => row.id, cellExport: (row) => row.id, sortable: true, }, { id: "title", name: "Title", selector: (row) => row.title, cellExport: (row) => row.title, sortable: true, }, { id: "year", name: "Year", selector: (row) => row.year, cellExport: (row) => row.year, sortable: true, }, ];