Skip to content

$drop

the method is called when an item is dragged and dropped on a valid target

function $drop(
// a DOM element from which a drag-n-drop action has started
source: HTMLElement,
// a DOM element of a possible drop landing
target: HTMLElement,
// a native HTML event
ev: Event
): void
webix.DragControl.addDrop("myDrop",{
$drop:function(source, target){...}
});

also check the next samples:

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.

Articles