Add toggle event

pull/12/head
cagataycivici 2019-02-03 21:52:03 +03:00
parent fe1507d480
commit 7dc10342af
2 changed files with 10 additions and 2 deletions

View File

@ -34,8 +34,12 @@ export default {
}
},
methods: {
toggle() {
toggle(event) {
this.d_collapsed = !this.d_collapsed;
this.$emit('toggle', {
originalEvent: event,
value: this.d_collapsed
});
}
}
}

View File

@ -31,8 +31,12 @@ export default {
}
},
methods: {
toggle() {
toggle(event) {
this.d_collapsed = !this.d_collapsed;
this.$emit('toggle', {
originalEvent: event,
value: this.d_collapsed
});
}
}
}