Documentation

onAfterDrop

fires after drag-n-drop was finished

void onAfterDrop(object context,Event e){ ... };

Parameters

contextobjectthe drag-n-drop context
eEventa native event object

Example

gridb.attachEvent("onBeforeDrop", function(context, ev){
    for (var i=0; i< context.source.length; i++){
        context.from.copy(context.source[i],context.start,this,webix.uid());
    }
    return false;
});
 
some.attachEvent("onAfterDrop", 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 drop on empty space
  • start - the id from which DND was started

See also

Back to top