$dragIn

the method is called when an item is moved into a possible drop landing during dnd

HTMLElement $dragIn(HTMLElement source,HTMLElement target,Event ev);
source
HTMLElementa DOM element on which a dnd action started target
HTMLElementa DOM element of a possible drop landing ev
Eventa native HTML event
HTMLElementa DOM element which will be saved as a drop target (to ignore a drop landing, return a null value)

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
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of tree visualization javascript product.