File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ import paginator from 'react-bootstrap-table2-paginator';
169169
170170``` js
171171paginator ({
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
You can’t perform that action at this time.
0 commit comments