onAfterDrop

fires after drag-n-drop was finished

void onAfterDrop(object context,Event native_event);
contextobjectthe drag-n-drop context
native_eventEventthe native event object

Example

gridb.attachEvent("onBeforeDrop", function(context, native_event){
    for (var i=0; i< context.source.length; i++){
        context.from.copy(context.source[i],context.index,this,webix.uid());
    }
    return false;
});
 
some.attachEvent("onAfterDrop", function(context, native_event){
    //... some code here ... 
});

Related samples

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 drop on an empty space
  • start - the ID from which drag-n-drop was started
See also
Back to top