No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Call a method on checkbox click

    Help
    2
    3
    5228
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sergiuwd last edited by sergiuwd

      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" and v-on:click="method", but without success.

      Thanks

      1 Reply Last reply Reply Quote 0
      • S
        sergiuwd last edited by

        Solved with v-on:click.native="method"

        1 Reply Last reply Reply Quote 1
        • matt
          matt last edited by

          As per the documentation (http://quasar-framework.org/components/checkbox.html#Vue-Events), you could use the @input event

          1 Reply Last reply Reply Quote 2
          • First post
            Last post