Q:
How can I customize drag-and-drop behavior?
A:
When dragging a node, the children of the moving node are displayed too.
You can turn this feature on/off, by setting a javascript variable to true or false.
Open the ob_mdn_xxxx.js file (located in the tree2/script folder).
At the top you have:
/// false - when dragging show moving node itself without children.
/// true - when dragging show moving node with children.
var show_with_children = true;
To highlight the nodes over which you drag the moving node, set the ob_HighlightOnDnd
variable (located in the same file) to true:
var ob_HighlightOnDnd = true; highlight the nodes under the moving node