react-sortable-tree
react-sortable-tree copied to clipboard
Drag a node from one tree ON TOP (to replace) a node in another tree
Requesting a Feature?
It would be nice to have a setting to drag a node from one tree to ANOTHER node on a different tree, in essence either replacing it, OR plugging into the event and doing something to the target tree node.
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
- What's your use case? (Tell me about your application and what problem you're trying to solve.)
The desired effect is dragging the left node to a node on the right ON TOP of it, which would highlight THAT right node, and on letting go, would trigger an event on that right node. Currently, when you do this, it puts a place holder UNDER the node to make it a child of that one.
In my app, the event would trigger setting that left node is mapped to that right node.
- What interface do you have in mind? (What new properties or methods do you think might be helpful?)
In my case, I am building a mapping screen where two trees are side by side, and currently I can only take a node from the left and drag it as a child of another node on the right.
- Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)