Skip to content

trigger

This function allows you to trigger a given report event.

Syntax

trigger (event, data)

Arguments

event

(Required)

The name of Report Event the report event to trigger

data

(Required)

The data to send to the event

Example

report.api.trigger("pdf:before", function(){
    // Some code
});