Call a method on checkbox click
-
Hi there!
I have created a checkbox using<q-checkbox>
and I need to call a method within the component when the checkbox is clicked. Is there any way I can do that? I have tried both@click="method"
andv-on:click="method"
, but without success.Thanks
-
Solved with
v-on:click.native="method"
-
As per the documentation (http://quasar-framework.org/components/checkbox.html#Vue-Events), you could use the @input event