Pagination

API

Props

NameTypeDefaultDescription
pageNumber1Defines the current page of the pagination
limitNumber10Defines the amount of items to show in each page
total-countNumber0Defines the total amount of items available to paginate through

Events

NameDescription
update:pageEvent emitted whenever the current page changed
update:limitEvent emitted whenever the limit (amount of lines per page) of the pagination changes

Simple pagination

A pagination, starting in the first page, showing 10 items per page and having a total of 21 items available:

1 10 of 21
1 of 3
<template>
	<Pagination v-model:page="currentPage" :limit="limit" :total-count="totalRows" />
</template>

<script>
export default {
	data() {
		return {
			currentPage: 1,
			limit: 10,
			totalRows: 21,
		}
	},
}
</script>
Last Updated:
Contributors: Carlos Pereira