Skip to main content

detachEvent

Description

Detaches a handler from an event (which was attached before by the attachEvent method)

detachEvent: (id: string) => void

Parameters

  • id - (required) string - the event's id

Example

var myEvent = scheduler.attachEvent("onClick", function (id){
...//event handler code
});
...
scheduler.detachEvent(myEvent);

Details

All event listeners attached using event will be detached automatically when the destructor is called.

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.