Documentation

onBeforeDragIn

fires before a dragged element is moved over the droppable area

void onBeforeDragIn(object context,Event native_event){ ... };

Parameters

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 next 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 DND was started

See also

Back to top