registers drop area
node | id|HTMLElement | html node or ID |
ctrl | object | object code of the drag control methods |
master_mode | boolean | flag which can be used if node in question has multiple inner areas, some of them can be used in DND and some not |
webix.DragControl.addDrop("myDrop",{
$drop:function(source, target){
var dnd = webix.DragControl.getContext();
if (dnd.from.name){ //ignoring non-ui dnd
// setting which value to drop if case of multiselect
var value = dnd.from.getItem(dnd.source[0]).title;
target.innerHTML=value;
}
}
});