Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Aug 30, 2018
1 parent 0f61e0b commit 53dbdb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<button @click="rows = [];">empty row</button>
<button @click="resetTable">reset Table</button>
<button @click="hideColumn">hide column</button>
<button @click="setFilter">SetFilter</button>
<input type="text" v-model="searchTerm">
<vue-good-table
ref="my-table"
Expand Down Expand Up @@ -194,6 +195,13 @@ export default {
searchedRow(params) {
console.log(params);
},
setFilter() {
console.log('setting john');
// this.columns[0].filterOptions.filterValue = 'John';
console.log(this.columns);
// this.$set(this.columns[0].filterOptions, 'filterValue', 'John');
this.$set(this.columns[1], 'filterOptions', { enabled: true, filterValue: 20 });
},
autofilter(type) {
if (type === 'name') {
this.columns[0].filterOptions.filterValue = 'John';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ export default {
if (typeof ofLabel === 'string') {
this.ofText = ofLabel;
}
if (typeof pageLabel === 'string') {
this.pageText = pageLabel;
}
Expand Down

0 comments on commit 53dbdb2

Please sign in to comment.