Documentation

$dragIn

method called when item moved on possible drop landing during dnd

HTMLElement $dragIn(HTMLElement source,HTMLElement target,Event ev);

Parameters

sourceHTMLElementDOM element on which dnd action started
targetHTMLElementDOM element of possible drop landing
evEventnative html event

Returns

HTMLElementDOM element which will be saved as drop target ( to ignore drop landing - return null value )
Details

The method isn't purposed for direct call! It is an extension point.

You can override it with your own logic, but be sure to check dnd related events first, as they are provide much more convinient way for dnd handling.

Back to top