@@ -36,14 +40,17 @@ export default {
rows: 10,
totalRecords: 50,
first2: 0,
- rows2: 1,
- totalRecords2: 12
+ totalRecords2: 12,
+ image: 'nature1'
}
},
methods: {
onPageChangeCustom(event) {
- this.first2 = event.first;
- this.rows2 = event.rows;
+ this.image = 'nature' + (event.page + 1);
+ },
+ reset() {
+ this.first2 = 0;
+ this.image = 'nature1';
}
},
components: {
@@ -52,8 +59,13 @@ export default {
}
-
\ No newline at end of file
diff --git a/src/views/paginator/PaginatorDoc.vue b/src/views/paginator/PaginatorDoc.vue
index 82ee81612..e113b9c0a 100644
--- a/src/views/paginator/PaginatorDoc.vue
+++ b/src/views/paginator/PaginatorDoc.vue
@@ -77,7 +77,6 @@ onPage(event) {
//event.page: New page number
//event.first: Index of first record
//event.rows: Number of rows to display in new page
- //event.page: Index of the new page
//event.pageCount: Total number of pages
}
@@ -156,7 +155,6 @@ onPage(event) {
event.page: New page number
event.first: Index of first record
event.rows: Number of rows to display in new page
- event.page: Index of the new page
event.pageCount: Total number of pages
Callback to invoke when page changes, the event object contains information about the new state.