Documentation

$drag

method called when drag operation initiated

string $drag(HTMLElement source,Event ev);

Parameters

sourceHTMLElementDOM element on which dnd action started
evEventnative html event

Returns

stringtext which will be used in dnd placeholder, returning false or empty string will block dnd
Details

method not 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