$drop

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

void $drop(HTMLElement source,HTMLElement target,Event ev);

Parameters

sourceHTMLElementa DOM element from which a drag-n-drop action has started
targetHTMLElementa DOM element of a possible drop landing
evEventa native HTML event

Example

webix.DragControl.addDrop("myDrop",{
    $drop:function(source, target){...}
});

Related samples

Details

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.

See also
Back to top