Pagination
Quick first, previous, next, last, and page buttons for pagination control of another component (such as <b-table>
or lists).
Do you know the latest update of 2022? Our roadmap is alive for future updates.
Quick first, previous, next, last, and page buttons for pagination control of another component (such as <b-table>
or lists).
<b-pagination>
is a custom input component that provides a current page number input control. The value should be bound via v-model in your app. Page numbers are indexed from 1. The number of pages is computed from the provided prop values for total-rows and per-page.
For pagination that changes to a new URL, use the <b-pagination-nav>
component instead.
Example Usage with <b-table>
:
Current Page: 1
Id | First Name | Last Name |
---|---|---|
1 | Fred | Flintstone |
2 | Wilma | Flintstone |
3 | Barney | Rubble |
For a full list of all available slots see the Slots section below.
If you prefer to have buttons with the first and last page number to go to the corresponding page, use the first-number
and last-number
props.
Optionally change from the default button size by setting the size
prop to either 'sm'
for smaller buttons or 'lg'
for larger buttons.
Easily switch to pill style buttons by setting the pills
prop
By default the pagination component is left aligned. Change the alignment to center
, right
(right
is an alias for end
), or fill
by setting the prop align
to the appropriate value.