$dragCreate

the method is called at the moment when drag-n-drop has started

HTMLElement $dragCreate(HTMLElement source,Event event);
sourceHTMLElementa DOM element on which a dnd action started
eventEventa native HTML event
HTMLElementa DOM element of the drag marker
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.

Back to top