From 38a651e29a5400a7eeed03ecf63e2ecb196004c0 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Mon, 15 Apr 2019 19:54:51 +0800 Subject: [PATCH] 20190415 release --- docs/table-props.md | 18 +++++++++++++++++ website/blog/2019-04-16-version-bump.md | 27 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 website/blog/2019-04-16-version-bump.md diff --git a/docs/table-props.md b/docs/table-props.md index a52c77a..f1eba0b 100644 --- a/docs/table-props.md +++ b/docs/table-props.md @@ -34,6 +34,7 @@ title: BootstrapTable Props * [pagination](#pagination-object) * [filter](#filter-object) * [onTableChange](#ontablechange-function) +* [onDataSizeChange](#ondatasizechange-function) ----- @@ -323,3 +324,20 @@ Following is a all available properties in `newState` object: } } ``` + +## onDataSizeChange - [Function] +This callback function will be called only when data size change by search/filter etc. This function have one argument which is an object contains below props: + +* `dataSize`: The new data size + +```js +handleDataChange = ({ dataSize }) => { + this.setState({ rowCount: dataSize }); +} + + +``` + diff --git a/website/blog/2019-04-16-version-bump.md b/website/blog/2019-04-16-version-bump.md new file mode 100644 index 0000000..b8f3546 --- /dev/null +++ b/website/blog/2019-04-16-version-bump.md @@ -0,0 +1,27 @@ +--- +title: New Release (2019-04-16) +author: Allen Fang +authorURL: https://twitter.com/allenfang_tw +--- + +## Changed Packages + +We got following package version bump in this release: + +* `react-bootstrap-table-next@3.1.1` +* `react-bootstrap-table2-filter@1.1.9` +* `react-bootstrap-table2-paginator@2.0.6` +* `react-bootstrap-table2-toolkit@1.4.1` + + +## Changelog + +### Bug fixes +* Fix expandRow.expanded undefined when enable sort and row expand([160dede](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/160dede41254f4d47aa985cfda720271ad784270)) + +### Features +* Add `onDataSizeChange` prop for listening data size change in table([363a432](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/363a43251ffc99cd54a2c4e89ee271ad8501e407)) + +### Enhancements +* Allow select options initialization with empty array([#894](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/894)) +* Accessibility on table seach input and filter([#890](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/890)) \ No newline at end of file