0

How do I show the number of rows in a table using react bootstrap table.

Additionally, I am using the search parameter to filter the table, so would like the number of rows to update as the table data is filtered.

4

1 回答 1

0

只需将您提供给 BootstrapTable 标记的数据属性的数据变量的长度

<BootstrapTable data = {this.props.data}>


this.props.data.length() 

这会给你行的大小

于 2019-01-31T10:47:25.417 回答