Category : react-table

We’re using react-table‘s useRowSelect for row selection. We want to extend it such that we can define rows that are non-selectable based on a certain condition, in which case they will not be selectable – neither when clicking on the non-selectable row nor when clicking Select All. Any ideas would be greatly appreciated. Source: Ask ..

Read more

I’m using react-table to create an expandible table. In that example data are in this format: [ { "firstName": "wheel", "lastName": "arch", "age": 29, "visits": 39, "progress": 87, "status": "single", "subRows": [ { "firstName": "singer", "lastName": "paper", "age": 24, "visits": 35, "progress": 55, "status": "complicated", "subRows": [ { "firstName": "professor", "lastName": "beam", "age": 22, "visits": ..

Read more

I’m currently using this example to create a table with selectable checkboxes. https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection?from-embed=&file=/src/App.js:3058-3085 I’m currently running into an issue where I need to prefill the table with specific object ids. For example, I have a selectedPeopleIds = ["1", "5"] and I want the selectedRowIds to select object with the ids of 1 and 5 only. ..

Read more