removes an event handler from an HTML element
node | HTMLElement | string | the HTML node or its id |
event | string | the name of an HTML event (without the 'on' prefix) |
handler | function | the event handler |
options | boolean | HandlerSettings | optional, the value of either the useCapture or options parameter. Read details |
const handler = function(event){
console.log("event!");
};
var element = document.querySelector(".my-element");
gantt.event(element, "click", handler);
gantt.eventRemove(element, "click", handler);
All event listeners attached using event will be detached automatically when the destructor is called.
added in version 4.0
Back to top