Methods
(static) dispatchEvent(target, name, data, bubbles, cancelable, composed)
Simple wrapper to easily dispatch custom events with data.
Parameters:
Name | Type | Description |
---|---|---|
target |
EventTarget | element on which behalf the event will be dispatched |
name |
string | name of the event |
data |
object | any data that is to be passed with the event |
bubbles |
boolean | |
cancelable |
boolean | |
composed |
boolean |