Zum Hauptinhalt springen

onEventDrag

Description

Wird ausgelöst, wenn ein Event innerhalb des Schedulers gezogen oder in der Größe verändert wird

onEventDrag: (id: string, mode: string, ev: Event) => void;

Parameters

  • id - (required) string - die ID des Events
  • mode - (required) string - der Dragging-Modus: "move", "resize" oder "new-size" (beim Erstellen neuer Events)
  • e - (required) Event - ein natives Event-Objekt

Example

scheduler.attachEvent("onEventDrag", function (id, mode, e){
//benutzerdefinierte Logik kann hier hinzugefügt werden
});

Details

Beschreibung der Modi:

  • move - das Event wird im Scheduler gezogen.
  • resize - das Event wird per Drag-and-Drop in der Größe verändert.
  • new-size - ein neues Event wird per Drag-and-Drop erstellt.
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.