react-table conditionally select row

  javascript, react-table, reactjs

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 Javascript Questions

LEAVE A COMMENT