Custom Drag Location

I am trying to define a “trash can” location to drag nodes to delete them. I followed the documentation but only the _dragIn method is getting called. here is my code:(i changed the function details to only alert)




I am using dhtmlxTree v.2.5 Standard edition build 91111.


you may try to use the following:

function s_control(){ this._drag=function(sourceHtmlObject,dhtmlObject,targetHtmlObject){ ... } this._dragIn=function(htmlObject,shtmlObject){ ... } this._dragOut=function(htmlObject){ ... } } var sinput=document.getElementById('sInput'); tree.dragger.addDragLanding(sinput, new s_control);

here is the sample … g_out.html