called when mouse was released over drop area and defines dropping behavior
source | HTMLElement | DOM element on which dnd action started |
target | HTMLElement | DOM element of possible drop landing |
ev | Event | native HTML event |
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;
}
}
});