phphe/he-tree-vue

How to drag arbitrary elements into a tree?

Opened this issue · 5 comments

This is a spectacular tree implementation I must say, so thank you for providing it!

Now, I have the following use case - I need to be able to drag elements INTO the tree and the source should not be another tree. The source (from where I want to drag elements from) is a grid or an arbitrary collection of elements (might also be a vertical/horizontal list but not necessary). Also, it should be possible to clone the element when dragging it into the tree.

Would that be possible with he-tree-vue? How do I implement an arbitrary collection of elements that can be draggable into the tree?

phphe commented

It does not support such operations.

Thanks. Do you have plans to add this in the near future?

phphe commented

I will try this weekend.

phphe commented

@ddenev what's your vue version

It's 2 with @vue/composition-api but I plan to switch to 3 whenever the Quasar framework (which I use) switches to 3.