fires before an item is dragged to another target and the mouse button is released, cancelable
id | string|number | the item's id |
pId | string|number | the parent's id |
index | number | the new item's index |
boolean | true to allow operation |
myTreeView.attachEvent("onBeforeDrop", function(id, pId, index){
// your code here
return true;
});
the event is blockable: return false to block the item's dropping
Back to top