20191109 release

This commit is contained in:
AllenFang 2019-11-09 14:52:15 +08:00
parent a93c6efe00
commit 04830bcb56
3 changed files with 61 additions and 1 deletions

View File

@ -18,6 +18,7 @@ title: Column Filter Props
* [customFilter](#customFilter)
* [Comparator](#comparator)
* [FILTER_TYPES](#filter-types)
* [Position](#position)
## **Getting Started**
Please check [Getting Started Guide](./basic-filter.html)
@ -453,4 +454,31 @@ Following properties is valid in `FILTER_TYPES`:
* NUMBER
* DATE
You will only need the `FILTER_TYPES` when you are customize the filter component and you want to assign a specify filter mode.
You will only need the `FILTER_TYPES` when you are customize the filter component and you want to assign a specify filter mode.
## **Position**
Default filter is rendered inside the table column header, but you can choose to render them as a row by `filterPosition`:
### Render in the top of table body
```js
<BootstrapTable
keyField='id'
data={ products }
columns={ columns }
filter={ filterFactory() }
filterPosition="top"
/>
```
### Render in the bottom of table body
```js
<BootstrapTable
keyField='id'
data={ products }
columns={ columns }
filter={ filterFactory() }
filterPosition="bottom"
/>
```

View File

@ -33,6 +33,7 @@ title: BootstrapTable Props
* [defaultSortDirection](#defaultSortDirection-string)
* [pagination](#pagination-object)
* [filter](#filter-object)
* [filterPosition](#filterposition-string)
* [onTableChange](#ontablechange-function)
* [onDataSizeChange](#ondatasizechange-function)
@ -288,6 +289,11 @@ const columns = [{
<BootstrapTable keyField='id' data={ products } columns={ columns } filter={ filterFactory() } />
```
## filterPosition - [String]
Available value is `inline`, `top` and `bottom`, default is `inline`. This prop decide where `react-bootstrap-table` render column filter.
## onTableChange - [Function]
This callback function will be called when [`remote`](#remote-bool-object) enabled only.

View File

@ -0,0 +1,26 @@
---
title: New Release (2019-11-09)
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.0`
* `react-bootstrap-table2-filter@1.3.0`
## Changelog
### Bug fixes
* Fixed select all broken if `keyField` is nested([1b9bd63](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/1109/commits/1b9bd6337090e938e6a438b29096fda6802fcc1a))
* Fixed can not configure `tabIndex` for header column([b2121fd](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/1109/commits/b2121fdf24b557de33068b8b13ba853f758bee02))
* Try to fix abnormal issue in `selection.js`([18caf0a](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/1109/commits/18caf0ac8df5dfdfe0a68ff19e244c9036820e2f))
### Features
N/A
### Enhancements
N/A