emit(event_name, event)
Class: SplitView. Method inherited from UIComponent.
Description:
Emits a specified event with a custom event object for this component. This event will be sent to all event handlers registered with the specified event name.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string |
Name of the event is same as name of an event handler registering function, such as |
|
|
object |
Custom event object |
Examples:
button.emit("onAction", {type: "action", command: "Click Me"}); // emits a custom event without user clicking on the button
