checkEvent

checks whether an event has some handler(s) specified

boolean checkEvent(string name);
namestringthe event's name
booleanreturns true, if some handler is specified for the event

Example

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

See also
Back to top