onExternalDragIn
Description
Fires when some data is being dragged into the scheduler from an outside DHTMLX component (only with dnd extension enabled)
onExternalDragIn: (id: string, source: object, e: Event) => boolean;
Parameters
id- (required) string - the data item idsource- (required) object - the source HTML element that was dragged into the schedulere- (required) Event - a native event object
Returns
result- (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)
Example
scheduler.attachEvent("onExternalDragIn", function (id, source, e){
scheduler.getEvent(id).text = source.innerHTML;
return true;
});
Related samples
- 10_integration/02_dhtmlxTree_outer_drag.html
Details
note
The event requires the outerdrag plugin to be activated.
- The event can be used to customize newly-created events (which are the result of drag-in operations).
- The event is blockable. Return false, and dragging won't produce a new event.
Related API
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.