onDragOver

fires when when a dragged item is moved over the droppable area, cancelable

boolean onDragOver(string|number id,string|number pId,number index){ ... };

Parameters

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

Returns

booleantrue to allow highlighting the drop area and an item can be dropped at a certain place

Example

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

Back to top