emit(event_name, event)

Class: RadioButtonMenuItem. 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

event_name

string

Name of the event is same as name of an event handler registering function, such as onAction or onChange.

event

object

Custom event object

Examples:

button.emit("onAction", {type: "action", command: "Click Me"}); // emits a custom event without user clicking on the button