Skip to main content

callEvent

Description

Calls an inner event

callEvent: (name: string, params?: any[]) => boolean

Parameters

  • name - (required) string - the event's name, case-insensitive
  • params - (optional) array - an array of the event-related data

Returns

  • result - (boolean) - false, if some of the event handlers returns false. Otherwise, true

Example

gantt.attachEvent("CustomEvent", function(param1, param2){
return true;
});

var res = gantt.callEvent("CustomEvent", [param1, param2]);

Details

Normally, events are called automatically and you don't need to use this method.