20191202 release

This commit is contained in:
AllenFang
2019-12-02 19:42:48 +08:00
parent 65ad1d507d
commit b9e2d743ff
2 changed files with 41 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ const columns = [{
## selectFilter
**Required**:
### selectFilter.options - [Object]
### selectFilter.options - [Object | Array | Function]
* (Required) the options for the list of drop down.
**Optional**:
@@ -161,12 +161,28 @@ const columns = [{
import BootstrapTable from 'react-bootstrap-table-next';
import filterFactory, { selectFilter } from 'react-bootstrap-table2-filter';
// options as Object
const selectOptions = {
0: 'good',
1: 'Bad',
2: 'unknown'
};
// options as Array
const selectOptions = [
{ value: 0, label: 'good' },
{ value: 1, label: 'Bad' },
{ value: 2, label: 'unknown' }
];
// options as Function
function selectOptions = (column) => [
{ value: 0, label: 'good' },
{ value: 1, label: 'Bad' },
{ value: 2, label: 'unknown' }
];
const columns = [
{ ... }, { ... }, {
dataField: 'quality',

View File

@@ -0,0 +1,24 @@
---
title: New Release (2019-12-02)
author: Allen Fang
authorURL: https://twitter.com/allenfang_tw
---
## Changed Packages
We got following packages version bump in this release:
* `react-bootstrap-table-next@3.3.2`
## Changelog
### Bug fixes
* Fixed incorrect row colspan when apply column toggle or column.hidden([4a340c7](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/4a340c714bb6006a30c447eeba4fd44ceca1e379))
* Fixed `filterPosition` property does not work with rowSelect([8ecdbf6](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/8ecdbf611bf7e715d95511a731032d5028759799))
### Features
N/A
### Enhancements
N/A