mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-07-01 06:30:11 +00:00
20181110 release
This commit is contained in:
@@ -124,15 +124,15 @@ const qualityFilter = selectFilter({
|
||||
> Note, the `selectOptions` can be an array also:
|
||||
```js
|
||||
const selectOptions = [
|
||||
{ label: 0, value: 'good' },
|
||||
{ label: 1, value: 'Bad' },
|
||||
{ label: 2, value: 'unknown' }
|
||||
{ value: 0, label: 'good' },
|
||||
{ value: 1, label: 'Bad' },
|
||||
{ value: 2, label: 'unknown' }
|
||||
];
|
||||
const columns = [
|
||||
..., {
|
||||
dataField: 'quality',
|
||||
text: 'Product Quailty',
|
||||
formatter: cell => selectOptions.find(opt => opt.label === cell).value,
|
||||
formatter: cell => selectOptions.find(opt => opt.value === cell).label,
|
||||
filter: selectFilter({
|
||||
options: selectOptions
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user