onAfterDrop
fires after drag-n-drop was finished
function onAfterDrop( // the drag-n-drop context context: object, // the native event object native_event: Event): void
Example
Section titled “Example”gridb.attachEvent("onBeforeDrop", function (context, native_event) { for (var i = 0; i < context.source.length; i++) { const newId = new Date().getTime(); context.from.copy(context.source[i], context.index, this, newId); } return false;});
some.attachEvent("onAfterDrop", function(context, native_event){ //... some code here ...});
also check the next samples:
Details
Section titled “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
Section titled “See also”Articles
API