onExternalDragIn

fires when some data is being dragged into the scheduler from an outside DHTMLX component (only with dnd extension enabled)

boolean onExternalDragIn(string id,object source,Event e);
idstringthe data item id
sourceobjectthe source HTML element that was dragged into the scheduler
eEventa native event object
booleandefines 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

Details

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.
See also
Back to top