vue-pagination-bootstrap
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "vue-pagination-bootstrap", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Server-side paging component in vue, template based on bootstrap", | ||
@@ -19,3 +19,5 @@ "main": "index.js", | ||
"paging", | ||
"bue-pag" | ||
"vue-pag", | ||
"vue-pagination-bootstrap", | ||
"vue-bootstrap-pagination" | ||
], | ||
@@ -22,0 +24,0 @@ "author": "Bruno Secco", |
# vue-pagination-bootstrap | ||
Server-side paging component in vue, template based on bootstrap | ||
* [Vue.js](http://vuejs.org/) (tested with 2.x) | ||
* [Bootstrap CSS](http://getbootstrap.com/) (tested with 4.x) | ||
* [Vue.js](http://vuejs.org/) (tested with 1.x & 2.x) | ||
* [Bootstrap CSS](http://getbootstrap.com/) (tested with 3.x & 4.x) | ||
@@ -18,4 +18,4 @@ ### Installation | ||
new Vue({ | ||
el: '#app',, | ||
components: { pagination } | ||
el: '#app', | ||
components: { pagination }, | ||
data () { | ||
@@ -26,3 +26,3 @@ return { | ||
paginationOptions: { // Not required to pass this configurations | ||
offset: 2, | ||
offset: 2, | ||
previousText: 'Prev', | ||
@@ -36,4 +36,4 @@ nextText: 'Next', | ||
pageChanged (page) { | ||
console.log(page) | ||
// Exec your response to server passing 'page' params as clicked button paging | ||
console.log(page) | ||
// Exec your response to server passing 'page' params as clicked button paging | ||
} | ||
@@ -53,5 +53,6 @@ } | ||
| :------------ | :--------| :-------| :--------| :----------- | ||
| total | Number | | true | Total itens in server side | ||
| pageSize | Number | | true | Number of itens in page | ||
| callback | Function | | true | Callback function used to load data for selected page | ||
| total | Number | | true | Total items in server side | ||
| pageSize | Number | | true | Number of items in page | ||
| callback | Function | | true | Callback function used to load data for the selected page | ||
| options | Object | | false | An configuration object to overwrite the defaults [options](#options) of the pagination | ||
@@ -58,0 +59,0 @@ ##### Options |
6462
64