onBeforeEventDrop
fires before an event is dropped
boolean onBeforeEventDrop(object context,object event);
| context | object | an object with drop context |
| event | object | HTML event |
| boolean | returning false will block drop operations |
Example
$$("scheduler1").attachEvent("onBeforeEventDrop", function(context, e) {
// your code here
});
Related samples
Details
The context object contains the following fields:
- event (object) - an event object
- id (string) - event ID
- $resize (boolean) - optional. true if event is resized in Day mode
- from (object) - information about source of Drag-n-Drop
- node (node) - a node of the dragged event
- target (node) - optional. Target of drop event (only in Day and Week modes).
Returning false from the event handler will block drop operations and their further processing.
$$("scheduler1").attachEvent("onBeforeEventDrop", function(context, e) {
return false;
});
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.