Skip to content

Commit

Permalink
example update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Jun 23, 2018
1 parent ae09569 commit 74c5b89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div>
<button @click="rows = [];">empty row</button>
<button @click="resetTable">reset Table</button>
<button @click="hideColumn">hide column</button>
<input type="text" v-model="searchTerm">
<vue-good-table
ref="my-table"
Expand Down Expand Up @@ -131,6 +132,9 @@ export default {
};
},
methods: {
hideColumn() {
this.$set(this.columns[0], 'hidden', true);
},
resetTable() {
this.$refs['my-table'].reset();
},
Expand Down

0 comments on commit 74c5b89

Please sign in to comment.