I am trying to use the react-table as a checkbox table. That is, the first column will be checkboxes, which in turn should select the row. I am able to select the checkboxes in my application, but once I sort it, the checkbox column do not get sorted. Also for some reason in the pen, the checkboxes are not coming up correctly.
I feel there might be a better way to implement this. Is there a better way to implement a Checkbox table using react-table?
https://codepen.io/poushy/pen/jwwyxQ
Here is an example:
Thank you @aaronschwartz - I will try this out!
@aaronschwartz I have the same question. In your example, I want have a checkbox in the header, if the user clicked it. All checkbox in the rows will be checked. I been working on this for a while...
@hijoncon See updated pen.
I'd really appreciated it! @aaronschwartz thank you!
Most helpful comment
Here is an example:
https://codepen.io/aaronschwartz/pen/WOOPRw?editors=0010