the method is called when a drag operation is initiated

string $drag(HTMLElement source,Event ev);


sourceHTMLElementa DOM element on which a dnd action has started
evEventa native HTML event


stringa text which will be used in a dnd placeholder, returning false or an empty string will block dnd

Related samples


The method is not 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
If you have not checked yet, be sure to visit site of our main product Webix javascript component library and page of dataview download product.