Simulate Node Drop on Parent

This issue has been tracked since 2020-12-31.

I'm curious how I can simulate a node being dropped on a parent node as I can't find a good way to allow a user to re-order sibling nodes.

So-far I've figured out how to get the parent and siblings and then swap two in an array, even iterate each and trigger the same nodedrop.orgchart on each from an actual drop however this has no visual effect. I've even tried removing and re-adding the nodes but it doesn't work when children have children (the drag/drop feels smoother anyway).

Current logic means I can still add left/right node ordering arrows to each node but each move would force a refresh of the chart... Does anyone know of a way to simulate dropping a node on its parent or to customize order live?

acidnine wrote this answer on 2021-01-11

I figured out how to get it done in a different (but still functional) kind of way.. jsfiddle here: https://jsfiddle.net/acid9nine/7kht31b8/

More Details About Repo
Owner Name dabeng
Repo Name OrgChart
Full Name dabeng/OrgChart
Language JavaScript
Created Date 2016-02-06
Updated Date 2022-11-25
Star Count 2498
Watcher Count 150
Fork Count 746
Issue Count 358

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date