File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments