Events missing in QTree
We would like to use the QTree but would need something like an onCollapse and onExpand or similar events for the tree nodes.
There are no events for QTree described in the tutorial.
Can anyone help?
Agreed that they seem to be missing direct Expand/collapse events, however you maybe able to utilize the expanded.sync in combination with a watcher to determine what has been expanded and collapsed during that watched event.
s.molinari last edited by s.molinari
There are events not documented for QTree.
Expanded has an event, depending on what is clicked, I believe.
There is a ticked event too.
I wonder if that fires on collapsing. Hmm… `
Give them a try.
Taken from the source code: https://github.com/quasarframework/quasar/blob/v0.17/src/components/tree/QTree.js