Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1879d77

Browse files
Merge pull request #150 from react-bootstrap-table/document-pagination
[Document] patch for pagination
2 parents da907d4 + 472f5d8 commit 1879d77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎docs/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ import paginator from 'react-bootstrap-table2-paginator';
169169

170170
```js
171171
paginator({
172+
page, // Specify the current page. It's necessary when remote is enabled
173+
sizePerPage, // Specify the size per page. It's necessary when remote is enabled
174+
totalSize, // Total data size. It's necessary when remote is enabled
172175
pageStartIndex: 0, // first page will be 0, default is 1
173176
paginationSize: 3, // the pagination bar size, default is 5
174177
sizePerPageList: [ {
@@ -189,7 +192,9 @@ paginator({
189192
firstPageTitle: 'Go to first', // the title of first page button
190193
lastPageTitle: 'Go to last', // the title of last page button
191194
hideSizePerPage: true, // hide the size per page dorpdown
192-
hidePageListOnlyOnePage: true// hide pagination bar when only one page, default is false
195+
hidePageListOnlyOnePage: true, // hide pagination bar when only one page, default is false
196+
onPageChange: (page, sizePerPage) => {}, // callback function when page was changing
197+
onSizePerPageChange: (sizePerPage, page) => {}, // callback function when page size was changing
193198
})
194199
```
195200

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /