Drag and Drop Tree within another tree #352
ravindra-wts
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
Hello, I am trying to implement a feature where I can make a complete tree dragable into another tree. However, I am facing issues in getting the targetType, betweenItem, and Root when I drop the tree into the target tree.
Steps to Reproduce:
Create two tree structures with multiple nodes.
Make the first tree dragable.
Try to drag the first tree and drop it into the second tree.
Expected Result:
When I drop the first tree into the second tree, I expect to get the targetType, betweenItem, and Root of the second tree so that I can render the new resultant tree accordingly.
Actual Result:
However, I am unable to get the targetType, betweenItem, and Root of the second tree, which makes it difficult for me to render the new resultant tree.
Example Resultant Tree:
Here's an example of how I would like the new resultant tree to look like:
tree
|_ Item1
|_ Item2
|_Dragged Tree
|__dragged item 1
|__dragged item 2
|__dragged item 3
|_Item3
|_Item4
|_Item5
Code
What thing I am doing wrong, suggest me any other way to achieve similar functionality
Beta Was this translation helpful? Give feedback.
All reactions