onDrop

fires when the dragged item is dropped

void onDrop(string|number id,string|number pId,number index){ ... };

Parameters

idstring|numberthe dragged item's id
pIdstring|numberthe dragged item's new parent id
indexnumberthe dragged item's new index

Example

myTreeView.attachEvent("onDrop", function(id, pId, index){
    // your code here
});

Back to top