@@ -169,6 +169,9 @@ import paginator from 'react-bootstrap-table2-paginator';
169
169
170
170
``` js
171
171
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
172
175
pageStartIndex: 0 , // first page will be 0, default is 1
173
176
paginationSize: 3 , // the pagination bar size, default is 5
174
177
sizePerPageList: [ {
@@ -195,16 +198,6 @@ paginator({
195
198
})
196
199
```
197
200
198
- When [ ` remote ` ] ( #remote ) was enabled, the following ** 3** arguments were required.
199
-
200
- ``` js
201
- paginator ({
202
- page, // Indicate the current page number.
203
- sizePerPage, // Indicate how many rows per page.
204
- totalSize, // Total size of table rows.
205
- })
206
- ```
207
-
208
201
### <a name =' onTableChange ' >onTableChange - [ Function] </a >
209
202
This callback function will be called when [ ` remote ` ] ( #remote ) enabled only.
210
203
0 commit comments