callEvent

calls an inner event

boolean callEvent(string name, [array params] );
namestringthe event's name, case-insensitive
paramsarrayoptional, an array of the event-related data
booleanfalse, 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.

Back to top