$drop

called when mouse was released over drop area and defines dropping behavior

void $drop(HTMLElement source,HTMLElement target,Event ev);
sourceHTMLElementDOM element on which dnd action started
targetHTMLElementDOM element of possible drop landing
evEventnative HTML event

Example

webix.DragControl.addDrop("myDrop",{
    $drop:function(source, target){
        var dnd = webix.DragControl.getContext();
            if (dnd.from.name){ //ignoring non-ui dnd
                var value = dnd.from.getItem(dnd.source[0]).title;
                target.innerHTML=value;
            }
    }
});

Related samples

See also
Back to top