Miss any of our Open RFC calls?Watch the recordings here! »

vue-simply-paginate

0.0.1 • Public • Published

vue-simply-paginate

Very basic and simple pagination for your needs.

Installation

Using npm

npm install --save vue-simply-paginate

Using yarn

yarn add --save vue-simply-paginate

Documentation

Quick setup

Import vue-simply-paginate

import SimplyPaginate from 'vue-simply-paginate';
 
export default {
    components: { SimplyPaginate }
}

and use it

<simply-paginate></simply-paginate>

Requirements

There are few properties you need to provide to vue-simply-paginate.

  • totalItems - The component needs to know how much items it is trying to paginate.
  • currentPage - It also needs a variable so the current page you are on can be remembered.

Optional

  • pageSize - You can pass the page size you want to the component. By default it will have "10" as default page size.

Events

  • page-change - The event will fire every time a button is pressed. Its payload carries the number of the new page.

License

MIT

Install

npm i vue-simply-paginate

DownloadsWeekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar