fire

triggers an inner event

boolean fire(string name,array params);

Parameters

namestringthe event's name, case-insensitive
paramsarrayan array of the event-related data

Returns

booleanfalse, 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"]);

Details

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

See also
Back to top