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

checkEvent

Description

Проверяет, есть ли у события указанные обработчики

checkEvent: (name: string) => boolean

Parameters

  • name - (обязательное) string - имя события

Returns

  • isExist - (boolean) - возвращает true, если для события указан обработчик(-и)

Example

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

gantt.checkEvent("onTaskClick"); //returns 'true'
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.