$dragMark

called during drag-n-drop, when some item of the component should be marked as an active drop target

boolean $dragMark(object context,Event ev);
contextobjecta drag-n-drop context
evEventa native HTML event
booleanreturning false will prevent a drag operation

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 of drag-n-drop handling.

The drag-and-drop context can have the following properties:

  • from - the source object
  • to - the target object
  • source - the id of dragged item(s)
  • target - the id of the drop target, null for a drop on an empty space
  • start - the id from which drag-and-drop has started
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of javascript excel viewer product.