onBeforeDrop

fires before a dragged item is released over the droppable area

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

Parameters

contextobjectdrag-n-drop context object
evEvent objecta native event object

Returns

booleanreturning false will prevent further drag-and-drop processing

Example

$$("fmanager").attachEvent("onBeforeDrop",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
See also
Back to top