AllenFang / AllenFang/react-bootstrap-table
Cannot set background color of unselectable row
Open
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 761
- PR merge metrics
- No merged PRs in 30d
Description
```
const selectRowProp = {
mode: 'checkbox',
clickToSelect: true,
onSelect: onRowSelect,
onSelectAll: onSelectAll,
selected: selected,
unselectable: unselectable,
bgColor: (row, isSelect) => {
const {id} = row;
if(unselectable.includes(id)) {
return 'red'
}
}
};
```
This piece of code do not work. However, If I change `unselectable.includes(id)` to `!unselectable.includes(id)`, then the selectable rows can be set red.
Contributor guide
Assessment
This issue has not been assessed yet.