hamed-ehtesham / pretty-checkbox-vue

Quickly integrate pretty checkbox components with Vue.js
MIT License
261 stars 31 forks source link

How to catch the input event callback when using pretty checkbox? #20

Closed minhtu-cloudtek closed 5 years ago

minhtu-cloudtek commented 5 years ago

Hi,

How can I catch input event (such as @change="myMethod") when using pretty checkbox component?

hamed-ehtesham commented 5 years ago

Hi @minhtu-cloudtek ,

you can use @change="myMethod" with this component and for other methods like @click you should use .native modifier with them like this: @click.native="myMethod"

minhtu-cloudtek commented 5 years ago

Many thanks!

It works like a charm!

hamed-ehtesham commented 5 years ago

i'm glad i could help you!