Thanks for the update.
We have checked your query. We can able to update the Switch state by using value property. Please check below code snippet and sample.
|
<ejs-switch
v-model="value"
:checked="value"
ref="switch"
></ejs-switch>
. . .
methods: {
btnClick: function (event) {
var switchObj = this.$refs.switch;
console.log(switchObj.checked);
},
toggle: function () {
this.value = !this.value;
},
},
|
Could you please check the above details and get back to us, if you need assistance on this.
If we misunderstood your requirement, please share more details that would be great help for us to proceed further.
Regards,
Aravinthan S