20190415 release

This commit is contained in:
AllenFang 2019-04-15 19:54:51 +08:00
parent a36e8ad928
commit 38a651e29a
2 changed files with 45 additions and 0 deletions

View File

@ -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 });
}
<BootstrapTable
onDataSizeChange={ handleDataChange }
....
/>
```

View File

@ -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))