Use returned value from toggle component on change event

This commit is contained in:
Hossein Nedaee
2019-10-22 23:04:17 +03:30
parent 3208cec882
commit cbbc0e5efa
3 changed files with 5 additions and 5 deletions

View File

@@ -100,7 +100,7 @@
<ul>
<li>
<span>
<pw-toggle :on="rawInput" @change="rawInput = !rawInput">
<pw-toggle :on="rawInput" @change="rawInput = $event">
Raw Input {{ rawInput ? "Enabled" : "Disabled" }}
</pw-toggle>
</span>