Default
Layout
Set layout of Pagination, pass an array or elements separated with a comma
The accepted values:
preva button navigating to the previous pagenexta button navigating to the next pagejumpera jump-to inputpagerpage listsizesa select to determine page sizetotaltotal item count->Every element after this symbol will be pulled to the right
We’ll detect some deprecated usages, if your pagination don’t appeared or worked as expected, please check rules below:
You have to define one of total and page-count, otherwise we can’t determine count of total pages.When both defined, page-count taken as priority. If current-page is defined, you have to listen current-page change, by also define @update:current-page, otherwise pagination didn’t work. If page-size is defined while page size selector displayed(sizes included in layout), you have to listen page-size change as well, by define @update:page-size, otherwise change of page size didn’t work.
Easily add a pagination with the s-pagination component, the required properties are total