Trigger

[ Interface ]

export interface Trigger {
    event: string;
    preventDefault?: true;
    actions: Trigger.Action[];
}

Defines a trigger that responds to a certain event and executes a list of actions.

Properties

Name

Type

Description

event

string

Name of the event

preventDefault

true

Defines whether the preventDefault function should be called in the corresponding event.

actions

Trigger.Action[]

A list of actions to be performed when the event occurs.

Trigger 1:

Available from version 1.12