Releases: TahaSh/vue-paginate
Releases · TahaSh/vue-paginate
Support dynamic perPage
Now you are able to use dynamic perPage
, which means you can do something like this:
<input type="number" v-model="numberOfItemsPerPage">
<section v-paginate:numberOfItemsPerPage="langs">
<ul>
<li v-for="lang in langs">
{{ lang }}
</li>
</ul>
</section>
vm = new Vue({
el: '#app',
data: {
langs: [...],
numberOfItemsPerPage: 3
}
});
Version 2.0.0
Release 2.0.0
Expose current page number on the vm
v1.2.1 Refactor current page to a function
The ability to update the full list manually
This release fixes the problem of not being able to update the full version of the list manually. Like this: fullPosts = newPostsList
.
This would be very useful in case you want to fetch the list asynchronously (Ajax).
Example:
this.$http.get('/posts')
.then(function (response) {
this.fullPosts = response.data
}
)
Add refresh page method
v1.1.0 Add support for list filtering