Qtree click label to set/reset the checkbox
-
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.
This is my Qtree definition
Thanks
HP -
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 theticked
model.https://quasar.dev/vue-components/tree#Example--Syncing-node-properties
-
@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