15 lines
287 B
JavaScript
15 lines
287 B
JavaScript
|
Vue.component('toggle-switch', {
|
||
|
template: '#tmpl-switch',
|
||
|
props: ['id','value','glow'],
|
||
|
|
||
|
methods: {
|
||
|
toggled: function(event) {
|
||
|
this.$emit('toggled', {
|
||
|
id: this.id,
|
||
|
value: !this.value
|
||
|
});
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|