EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 10:11:27 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for Vue
>
Event in switchbutton
Pages: [
1
]
« previous
next »
Print
Author
Topic: Event in switchbutton (Read 4732 times)
lintang
Newbie
Posts: 8
Event in switchbutton
«
on:
August 14, 2019, 09:49:39 PM »
what the event of swithbutton?
i want to change switchbutton using other switchbutton
«
Last Edit: August 14, 2019, 09:54:59 PM by lintang
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Event in switchbutton
«
Reply #1 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)
}
}
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...