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

    Qtree click label to set/reset the checkbox

    Help
    2
    3
    217
    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.
    • H
      hpawar last edited by hpawar

      Hello,

      I want to click on the label highlighted in yellow to select the corresponding checkbox for leaf elements. Is that possible to achieve? If yes, any suggestions please.

      925dee1b-db62-42ac-9b75-6e986d1971bd-image.png

      This is my Qtree definition

      84bc0ed6-4bf7-42ae-a0d8-cb84fcf20918-image.png

      Thanks
      HP

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @hpawar last edited by

        @hpawar

        a bit of a hack but you could enable selected in your q-tree ( like in the example below) and then listen to @update:selected events to update the ticked model.

        https://quasar.dev/vue-components/tree#Example--Syncing-node-properties

        H 1 Reply Last reply Reply Quote 0
        • H
          hpawar @dobbel last edited by

          @dobbel Thanks… I can try that. The challenge could be to distinguish between group header click vs leaf click.
          On group click I only want to expand/contract the group.
          On leaf click I want to set the checkbox

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