react-bootstrap-table: add ignoreSinglePage option (#11581)

As shown in the [docs](http://allenfang.github.io/react-bootstrap-table/docs.html)

```
ignoreSinglePage : Bool
Enable to ignore the pagination if only one page, default is false.
```
This commit is contained in:
Ian Ker-Seymer
2016-09-30 08:20:50 -04:00
committed by Masahiro Wakame
parent 08a4dd39f0
commit ae43db1d4e
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ function priceFormatter(cell: any, row: any) {
}
render(
<BootstrapTable data={products} striped={true} hover={true}>
<BootstrapTable data={products} striped={true} hover={true} ignoreSinglePage>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: 'textarea', rows: 10 }}>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>

View File

@@ -125,6 +125,7 @@ declare module "react-bootstrap-table" {
containerStyle?: any;
headerStyle?: any;
bodyStyle?: any;
ignoreSinglePage?: boolean;
}