0.2.1 • Published 6 years ago

vue-bulma-paginate v0.2.1

Weekly downloads
24
License
Apache-2.0
Repository
github
Last release
6 years ago

vue-bulma-paginate

Install via NPM:

npm < 5.0:
npm install vue-bulma-paginate --save
npm >= 5.0:
npm install vue-bulma-paginate

Usage

Props

PropTypeRequiredDefaultDescription
itemsTotalNumberTrue0Elements to paginate
itemsPerPageNumberTrue1Elements per page
currentPageNumberTrue1Current page
urlStringTrueVue Router named route
buttonsMaxNumberFalse7Maximum number of buttons to show including first and last page (must be odd)
queryParameterStringFalsepageCustom query parameter (e.g., example.com/gallery?images-set=2)
nextTextStringFalseNextCustom text for next button
previousTextStringFalsePreviousCustom text for previous button
goToTextStringFalseGoto pageCustom text for aria-label attribute on "a" tags
pageTextStringFalsePageCustom text for aria-label attribute on current page "a" tag

Example

import Pagination from 'vue-bulma-paginate';
...
components: {
  Pagination,
}
...
<Pagination
  :itemsTotal="pagination.itemsTotal"
  :itemsPerPage="pagination.perPage"
  :currentPage="pagination.currentPage"
  :buttonsMax="5"
  :url="this.$route.name"
  :queryParameter="images-set"
  :nextText="Next set"
  :previousText="Previous set"
  :goToText="Go to the images set"
  :pageText="Images set"
/>

A full example is provided at the Demo.

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago