QTree: let expandAll() and setExpanded(key, state) return a promise #13100
Unanswered
drahkrub
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
...(instead of
void 0) which resolves when all animations are finished.Use case: I've placed a (potentially) large QTree inside a QScrollArea as already described in #13094. If some new node is added to the tree I would like to scroll this node into view. Unfortunately if the new node is a leaf node of a deeper nested structure which is added to the tree model than the new (parent) nodes are initially collapsed. Therefore I expand all parents of the newly attached leaf node up to the root. Only when this is completed (including all animations) the leaf node can be scrolled into view (otherwise I fail to calculate the scroll offset).
I guess there are also simpler use cases ;-) but they all boil down to "I want to wait for a stable version of the QTree = all animations are finished before ...".
Would be nice if this would be integrated into the already great Quasar! :-)
Beta Was this translation helpful? Give feedback.
All reactions