vue-simple-pagination
A simple Vue.js pagination component. Provide it with the pageCount and the current page and it displays the pagination.
Requirements
- Vue.js ^
2.0.0
Installation
Assuming that you'll be using gulp or browserify to roll all your js into a single file:
$ npm install vue-simple-pagination --save-dev
Usage
var Vue = ;Vue
After installing the plugin you can use it like this
var vm = el: 'body' data: pageCount: 200 currentPage: 5 methods: { // Your AJAX or other code to display the data for the newly selected currentPage } ;
Props
pageCount
currentPage
Events
page-changed
- fired whenever the page is changed and passed the new page value.