customise element wrapper if has children
ayoub-root opened this issue · comments
Ayoub benayache commented
minop1205 commented
By default, dropping from a child to its parent is not allowed, but you can control its behavior with the canDrop
callback.
Also, since the onDrop
callback is passed the node information of the source and destination of the drop, it is possible to detect the drop from the child to the parent.
After detecting the drop from the child to the parent, customize the tree data based on this information. Use the customized data to control the rendering of the parent node as needed.