Idea Summary
Tree nodes in an APEX Tree region should be draggable and droppable - both within the same tree and between tree regions.
Use Case
Within the same tree
- Reordering sub-nodes within a parent node.
- Move sub-nodes between parent nodes.
Between two Trees
- Move a node from one tree to another, allowing users to populate the target tree from options displayed in the source tree.
- This might potentially contain two options:
- COPY the selected node to the targe tree
- MOVE the selected node to the target tree
Preferred Solution (Optional)
Ideally there would be a few different attributes that would help to properly implement this idea.
- Node/level Type - Allows you to define the node type. Can be used to limit the target parent for a dragged node
- Allow Drag - Allow nodes to be dragged from or within a tree
- Allow Drop - Allow nodes to be dropped onto a tree
- Copy or Move - Defines whether the dragged node persists in its original position
Examples
https://www.grapecity.com/wijmo/demos/Nav/TreeView/Nodes/DragandDropBetweenTrees/purejs
https://www.lidorsystems.com/help/integralui/web-components/treeview/drag-drop-between-treeviews/