본문으로 건너뛰기

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'를 반환합니다