onBeforeDragIn
fires before an item is dragged to another potential target
boolean onBeforeDragIn(object context,Event object ev);
context | object | context object |
ev | Event object | native event object |
boolean | true - to trigger the default action, false - to block it |
Example
myDataView.attachEvent("onBeforeDragIn", function (context, ev){
// your code here
return true;
});
Details
- context.start - ID of an item, from which the dragging process was started
- context.source - an array of dragged IDs (drag source)
- context.target - ID of the target item (drop target)
- context.from - a view object to which the dragged item belongs
- context.to - a view object to which the drop target belongs
- context.index - an index in the target view at which new item will be added
The event is blockable, returning false will block the default action.
Back to top