Pagination
Usage
Use a v-model
to get a reactive page alongside a total
which represents the total of items. You can also use the page-count
prop to define the number of items per page which defaults to 10
.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Max
Use the max
prop to set a maximum of displayed pages. Defaults to 7
, being the minimum.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Size
Use the size
prop to change the size of the buttons.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Links
Use the to
property to transform buttons into links. Note that it must be a function that receives the page number and returns a route destination.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Disabled
Use the disabled
prop to disable all the buttons.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Active / Inactive
Use the active-button
and inactive-button
props to customize the active and inactive buttons of the Pagination.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Prev / Next
Use the prev-button
and next-button
props to customize the prev and next buttons of the Pagination.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
First / Last
Use the first-button
and last-button
props to customize the first and last buttons of the Pagination.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Slots
prev
/ next
Use the #prev
and #next
slots to set the content of the previous and next buttons.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
first
/ last
Use the #first
and #last
slots to set the content of the first and last buttons.
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }
Props
config.default.size
"md"
"2xs"
"xs"
"sm"
"lg"
"xl"
7
{}
null
"\u2026"
10
config.default.activeButton as Button
config.default.inactiveButton as Button
config.default.firstButton as Button
config.default.lastButton as Button
config.default.prevButton as Button
config.default.nextButton as Button
false
false
false
Config
{ "message": "You should use slots with <ContentRenderer>", "value": {}, "excerpt": false, "tag": "div" }