Fixed #419 - DataTable row reorder demo not working

pull/426/head
cagataycivici 2020-08-04 15:48:47 +03:00
parent ab589686f1
commit b1bfa2fcb0
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export default {
this.$toast.add({severity:'success', summary: 'Column Reordered', life: 3000}); this.$toast.add({severity:'success', summary: 'Column Reordered', life: 3000});
}, },
onRowReorder(event) { onRowReorder(event) {
this.cars = event.value; this.products = event.value;
this.$toast.add({severity:'success', summary: 'Rows Reordered', life: 3000}); this.$toast.add({severity:'success', summary: 'Rows Reordered', life: 3000});
} }
} }
@ -98,7 +98,7 @@ export default {
this.$toast.add({severity:'success', summary: 'Column Reordered', life: 3000}); this.$toast.add({severity:'success', summary: 'Column Reordered', life: 3000});
}, },
onRowReorder(event) { onRowReorder(event) {
this.cars = event.value; this.products = event.value;
this.$toast.add({severity:'success', summary: 'Rows Reordered', life: 3000}); this.$toast.add({severity:'success', summary: 'Rows Reordered', life: 3000});
} }
} }