본문으로 건너뛰기

checkEvent

Description

이벤트에 하나 이상의 핸들러가 지정되어 있는지 확인합니다

checkEvent: (name: string) => boolean

Parameters

  • name - (required) 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"); // '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.