Zum Hauptinhalt springen

detachEvent

Description

Trennt einen Handler von einem Event (welches zuvor durch die attachEvent() Methode angehängt wurde

detachEvent: (id: string) => void

Parameters

  • id - (erforderlich) string - die ID des Events

Example

const myEvent = gantt.attachEvent("onTaskClick", function(id, e) {
alert("You've just clicked an item with id="+id);
});

gantt.detachEvent(myEvent);
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.