How to use md-switch the get and set values and fire events?


Topic: How to use md-switch the get and set values and fire events?

philipp pro asked 6 years ago

How can I use the ms-switch component to get and set the value (true/false) and evoke a function on a change event? The example in the MDB-Vue-Pro does not have this implemented. I tried as follows:
<md-switch @change="toggle"/>
...
toggle () {

console.log('toggle');

}

Mikołaj Smoleński staff answered 6 years ago

Hi Phillipp, Thanks for reporting about that issue. It is our mistake. We'll try to prepare event for switch as soon as possible. Best Regards

philipp pro answered 6 years ago

Hi Mikolay, good to hear you're working on it. Looking forward to updates ... Thanks, Philipp
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.6.0
  • Device: Macbook
  • Browser: Chrome
  • OS: OS X
  • Provided sample code: Yes
  • Provided link: No
Tags