mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-04-11 23:34:31 +00:00
20190415 release
This commit is contained in:
@@ -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 }
|
||||
....
|
||||
/>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user