Перейти к основному содержимому

detachEvent

Description

Отключает обработчик от события, которое ранее было привязано методом attachEvent()

detachEvent: (id: string) => void

Parameters

  • id - (обязательный) string - идентификатор события

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.