checkEvent

지정된 이벤트에 할당된 핸들러가 있는지 확인합니다

boolean checkEvent(string name);
namestring이벤트 이름
boolean이벤트에 적어도 하나의 핸들러가 설정되어 있으면 true를 반환합니다

Example

gantt.attachEvent("onTaskClick", function(id, e) {
    alert("You've just clicked an item with id="+id);
});
 
gantt.checkEvent("onTaskClick"); // 'true'를 반환합니다

See also
Back to top