AllenFang / AllenFang/react-bootstrap-table
Cannot set background color of unselectable row
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2.2k
- Forks
- 761
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
```
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.