the method is called when an item is dragged and dropped on a valid target
source | HTMLElement | a DOM element from which a drag-n-drop action has started |
target | HTMLElement | a DOM element of a possible drop landing |
ev | Event | a native HTML event |
webix.DragControl.addDrop("myDrop",{
$drop:function(source, target){...}
});
The method isn't purposed for direct call! It is an extension point.
You can override it with your own logic, but check drag-n-drop related events first, as they provide a much more convenient way for drag-n-drop handling.