quasar-draggable-tree
quasar-draggable-tree copied to clipboard
Some ideas for extra features
Hi there, I was looking around for a version of QTree that is draggable, and was pointed to this. First off, it looks good so far, nice work!
If you need some things to work on for extra features, here are some ideas:
- Keyboard support (just like QTree, open close leafs etc.)
- Move a node to the root of the tree
- Node selection
On another note, maybe just take the QTree component and extend that?
Just a few thoughts, feel free to ignore them :)
Hey,
Thank you for your feedback. I will work on it in future releases.
It's kind of tricky to use QTree as it itself is another component that renders the tree. And I think using components inside components would be difficult.
Once again thank you!
I was working on a version using a QTree myself, here is a codepen: https://codepen.io/Evertvdw/full/Bajqedj
This looks pretty nice. Though some work needed. But I wanted to have full control of the tree so I had decided to create my own components.
I didn't feel like it warrants a separate bug report, so I'll leave a feature idea here. In the demo, when moving a node around, the parent container shows jagged animation because it is growing and shrinking when node element is created in a new place and then destroyed to be created in next place - until you finally drop it in place. Not sure how to gracefully fix that.
Thank you for your feedback. I also have noticed that. I will fix it in future releases.