mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
20191202 release
This commit is contained in:
@@ -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',
|
||||
|
||||
24
website/blog/2019-12-02-version-bump.md
Normal file
24
website/blog/2019-12-02-version-bump.md
Normal 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
|
||||
Reference in New Issue
Block a user