onBeforeDragIn

fires before a dragged element is moved over the droppable area

void onBeforeDragIn(object context,Event native_event);
contextobjectthe drag-n-drop context
native_eventEventan HTML event object

Example

some.attachEvent("onBeforeDragIn", function(context, native_event){
    //... some code here ... 
});

Details

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

  • from - the source object
  • to - the target object
  • source - the ID of the dragged item(s)
  • target - the ID of the drop target, null for dropping on empty space
  • start - the ID from which drag-n-drop was started
  • index - (number) the index of the node within the branch
  • x_offset - the left offset between the pointer and the dragged element
  • y_offset - the top offset between the pointer and the dragged element
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of datagrid in html5 product.