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

    QToggle "on change" event

    Help
    3
    4
    2763
    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.
    • F
      filipec last edited by

      Hi all,
      I have a datatable where i need to place a toggle button (active/inactive) on each row.
      When one toggle change his value i want to call a method that will update that record/status on the database.
      What toogle event that i need to call?
      I’ve tried:

      <q-toggle @toggle="update(props.row.__index)" v-model="props.row.status"  />
      

      With no success.
      Thank you!

      1 Reply Last reply Reply Quote 0
      • T
        tof06 last edited by

        Hi,

        try with @input event

        F A 2 Replies Last reply Reply Quote 1
        • F
          filipec @tof06 last edited by

          @tof06 it works!

          Thank you

          1 Reply Last reply Reply Quote 0
          • A
            avistad @tof06 last edited by

            @tof06 This solution helped me too… Thank you!

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