Check documentation for the latest version 6.0 of dhtmlxSuite onDragIn DHTMLX Docs

onDragIn

fires when the item is dragged over some target the item can be dropped to

boolean onDragIn(string|number sId,string|number tId,object sObject,object tObject){ ... };

Parameters

sIdstring|numberid of the dragged item
tIdstring|numberid of the potential drop landing
sObjectobjectdhtmlXTreeObject instance of the source tree
tObjectobjectdhtmlXTreeObject instance of the target tree

Returns

booleantrue to allow dropping

Example

myTree.attachEvent("onDragIn", function(sId, tId, sObject, tObject){
    // your code here
});

Back to top