Interface WebComponent.CustomEventJs
- All Superinterfaces:
Serializable
- Enclosing class:
WebComponent<C extends Component>
How an event of an exported web component is fired, as a JavaScript
definition for
Element.executeJs(Class).- Since:
- 25.4
-
Method Summary
-
Method Details
-
fireEvent
@JsExpression("this.dispatchEvent(new CustomEvent($0, $1));") void fireEvent(String eventName, tools.jackson.databind.node.ObjectNode options) Fires an event on the host of the web component.- Parameters:
eventName- the name of the eventoptions- what the event is made of, including its detail
-