onAfterDrop
fires when the drag-n-drop operation is finished
void onAfterDrop(object context,Event object event);
context | object | context object |
event | Event object | native HTML event |
Example
myList.attachEvent("onAfterDrop", function (context,ev){
// your code here
});
Details
possible values of the context object:
- context.start - ID of an item, from which the dragging process has started
- context.source - array of the dragged IDs (drag source)
- context.target - ID of the target item (drop target)
- context.from - view object to which the dragged item belongs
- context.to - view object to which the drop target belongs
- context.index - index in the target list at which new item will be added
- context.new_id - id which will be used for the moved item (actual only while moving between different lists)
Back to top