mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-03-01 11:42:43 +00:00
20181110 release
This commit is contained in:
parent
d947f1be0b
commit
fc84c1c1a2
@ -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
|
||||
})
|
||||
|
||||
27
website/blog/2018-11-10-version-bump.md
Normal file
27
website/blog/2018-11-10-version-bump.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: New Release (2018-11-10)
|
||||
author: Allen Fang
|
||||
authorURL: https://twitter.com/allenfang_tw
|
||||
---
|
||||
|
||||
## Changed Packages
|
||||
|
||||
We got following package version bump in this release:
|
||||
|
||||
* `react-bootstrap-table-next@1.4.1`
|
||||
* `react-bootstrap-table2-filter@1.1.0`
|
||||
* `react-bootstrap-table2-paginator@1.0.4`
|
||||
* `react-bootstrap-table2-editor@1.2.2`
|
||||
|
||||
|
||||
## Changelog
|
||||
|
||||
### Bug fixes
|
||||
* Fixed wrong usage of `label` and `value` for the options of select filter.
|
||||
* Fixed wrong `from` and `to` value when enable `showTotal` for pagination.
|
||||
* Fixed `condensed` is broken in `bootstrap@4`
|
||||
* Fixed the error message disappear in `bootstrap@4`
|
||||
|
||||
### Features
|
||||
|
||||
### Enhancements
|
||||
Loading…
Reference in New Issue
Block a user