20181110 release

This commit is contained in:
AllenFang
2018-11-10 17:09:06 +08:00
parent d947f1be0b
commit fc84c1c1a2
2 changed files with 31 additions and 4 deletions

View File

@@ -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
})