mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
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:
committed by
Masahiro Wakame
parent
08a4dd39f0
commit
ae43db1d4e
@@ -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>
|
||||
|
||||
@@ -125,6 +125,7 @@ declare module "react-bootstrap-table" {
|
||||
containerStyle?: any;
|
||||
headerStyle?: any;
|
||||
bodyStyle?: any;
|
||||
ignoreSinglePage?: boolean;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user