he-tree-vue icon indicating copy to clipboard operation
he-tree-vue copied to clipboard

How to drag arbitrary elements into a tree?

Open ddenev opened this issue 4 years ago • 5 comments
trafficstars

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?

ddenev avatar Jan 03 '21 08:01 ddenev

It does not support such operations.

phphe avatar Jan 04 '21 14:01 phphe

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

ddenev avatar Jan 04 '21 14:01 ddenev

I will try this weekend.

phphe avatar Jan 04 '21 14:01 phphe

@ddenev what's your vue version

phphe avatar Jan 04 '21 15:01 phphe

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

ddenev avatar Jan 04 '21 15:01 ddenev