EasyUI Forum

General Category => EasyUI for Vue => Topic started by: lintang on August 14, 2019, 09:49:39 PM



Title: Event in switchbutton
Post by: lintang on August 14, 2019, 09:49:39 PM
what the event of swithbutton?
i want to change switchbutton using other switchbutton


Title: Re: Event in switchbutton
Post by: stworthy on August 15, 2019, 12:18:19 AM
Bind the value to the component and watch it.
Code:
<SwitchButton v-model="value"></SwitchButton>
Code:
watch: {
value(){
console.log(this.value)
}
}