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 48004e1

Browse files
patch for pagination document
* required props for remote mode
1 parent da907d4 commit 48004e1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎docs/README.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,19 @@ paginator({
189189
firstPageTitle: 'Go to first', // the title of first page button
190190
lastPageTitle: 'Go to last', // the title of last page button
191191
hideSizePerPage: true, // hide the size per page dorpdown
192-
hidePageListOnlyOnePage: true// hide pagination bar when only one page, default is false
192+
hidePageListOnlyOnePage: true, // hide pagination bar when only one page, default is false
193+
onPageChange: (page, sizePerPage) => {}, // callback function when page was changing
194+
onSizePerPageChange: (sizePerPage, page) => {}, // callback function when page size was changing
195+
})
196+
```
197+
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.
193205
})
194206
```
195207

0 commit comments

Comments
(0)

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