onBeforeDragIn

fires before a dragged item is moved over the droppable area

boolean onBeforeDragIn(object context,Event ev){ ... };

Parameters

contextobjectdrag-n-drop context object
evEventa native event object

Returns

booleanreturning false will prevent dropping of the element

Example

$$("fmanager").attachEvent("onBeforeDragIn",function(context,ev){
    // your code
    return true;
});

Related samples

Details

The properties of the context object are:

  • from - (object) the source object
  • to - (object) the target object
  • source - (array) the ID of the dragged item(s)
  • target - (string) the ID of the drop target, null for drop on empty space
  • start - (string) the ID from which DnD started
Back to top