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 }
....
/>
```