quasar-draggable-tree icon indicating copy to clipboard operation
quasar-draggable-tree copied to clipboard

Some ideas for extra features

Open Evertvdw opened this issue 5 years ago • 5 comments

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 :)

Evertvdw avatar Jul 17 '20 10:07 Evertvdw

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!

mayank091193 avatar Jul 17 '20 10:07 mayank091193

I was working on a version using a QTree myself, here is a codepen: https://codepen.io/Evertvdw/full/Bajqedj

Evertvdw avatar Jul 17 '20 11:07 Evertvdw

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.

mayank091193 avatar Jul 18 '20 06:07 mayank091193

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.

Zireael avatar Jul 18 '20 14:07 Zireael

Thank you for your feedback. I also have noticed that. I will fix it in future releases.

mayank091193 avatar Jul 19 '20 10:07 mayank091193