From 04830bcb5672261c25e020440d73ca09f57e353b Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sat, 9 Nov 2019 14:52:15 +0800 Subject: [PATCH] 20191109 release --- docs/filter-props.md | 30 ++++++++++++++++++++++++- docs/table-props.md | 6 +++++ website/blog/2019-11-09-version-bump.md | 26 +++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 website/blog/2019-11-09-version-bump.md diff --git a/docs/filter-props.md b/docs/filter-props.md index 4ba2555..1feb957 100644 --- a/docs/filter-props.md +++ b/docs/filter-props.md @@ -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. \ No newline at end of file +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 + +``` + +### Render in the bottom of table body +```js + +``` diff --git a/docs/table-props.md b/docs/table-props.md index f1eba0b..0f51d4f 100644 --- a/docs/table-props.md +++ b/docs/table-props.md @@ -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 = [{ ``` +## 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. diff --git a/website/blog/2019-11-09-version-bump.md b/website/blog/2019-11-09-version-bump.md new file mode 100644 index 0000000..9d211d0 --- /dev/null +++ b/website/blog/2019-11-09-version-bump.md @@ -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 \ No newline at end of file