Skip to content

Commit

Permalink
Merge pull request #1 from eblanshey/master
Browse files Browse the repository at this point in the history
Update visible rows when rows prop updates
  • Loading branch information
pstephan1187 committed Jan 23, 2017
2 parents adc5c77 + 59fc7e8 commit 9dec8f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vue-datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ module.exports = {
sort_by: null,
sort_dir: null,
}},
watch: {
rows: function(val){
this.updateRows(val);
}
},
computed: {
column_props: function(){
var i = 0;
Expand Down Expand Up @@ -154,4 +159,4 @@ module.exports = {
this.visible_rows = this.sorted_rows;
}
}
</script>
</script>

0 comments on commit 9dec8f1

Please sign in to comment.