Closed ashotmark closed 5 months ago
Name | Link |
---|---|
Latest commit | 657bfded7237a5a1f668908cfe60983520f105ca |
Latest deploy log | https://app.netlify.com/sites/react-data-table-component/deploys/65fc311dffba9e00089065ee |
Deploy Preview | https://deploy-preview-1218--react-data-table-component.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Close due to wrong PR
Note:
This is re-PR for the Allow custom row container as optional I send PR again because former PR was closed due to inactivity, but I think this is still worth to consider merge because this helps some projects and never impact to existing features. I rebased changes from upstream master, so this should be up to date.
Why
In some cases(in our project), we need row to be link, so that users are able to open in new tab or same tab by clicking row as their desired. In my checking all props, realized that's impossible.
What
I added new
renderRow
prop toDataTable
as optional. ifrenderRow
is missing,DataTable
will work as currently. else ifrenderRow
is present, this will be invoked to render rows for table.Example