attachEvent
function attachEvent(id: string, action: ()): void
Description
Defines the method to add an event listener, a function that will be called whenever the specified event is delivered to the target. The list of all the available events can be found {@link /plugin/events here}.
Parameters
- id
string
The event name.
- action
()
The event listener.
Returns
void