Skip to main content

checkEvent

Description

Checks whether an event has some handler(s) specified

checkEvent: (name: string) => boolean

Parameters

  • name - (required) string - the event's name

Returns

  • isExist - (boolean) - returns 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'
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.