trigger¶
The trigger method is used to trigger a given report event.
Syntax
trigger (event, data)
Arguments¶
event : string
(required)¶
The name of the Report Event to be triggered.
data : JSON
(required)¶
The data to send to the event.
Example¶
report.api.trigger("pdf:before", function(){
// Some code
});