Add a hook before drag-drop
| Project: | Simple Tree +Drag'nDrop |
| Version: | 1-0.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Allow the user to add a function in the options which is called when a node
is dragged and dropped over an other one. The function would receive two
parameters and return true/false. The first parameter would be the destination node
and the second the dragged node.
An example:
tree = $('.simpleTree').simpleTree({
autoclose: false,
afterDnD: function(dest, droped) {
return conditionHolds;
},
..........
});
If afterDnD returns false, the dragged node should not change it's parent
