Skip to main content

fire()

triggers an inner event

fire(name: string, arguments: any[]): boolean;

Parameters:

  • name: string - the event's name, case-insensitive
  • arguments: array - an array of the event-related data

Returns:

False, if some of the event handlers return false. Otherwise, true.

Example

spreadsheet.events.on("CustomEvent", function(param1, param2){
return true;
});

var res = spreadsheet.events.fire("CustomEvent", [12, "abc"]);

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

Related articles

Event Handling