0.0.1 • Published 7 years ago
vue-simply-paginate v0.0.1
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
0.0.1
7 years ago