ScriptUIExtendScript only
Object

UIEvent

Encapsulates input event information for an event that propagates through a container and control hierarchy.

Properties

NameType AccessDescription
Boolean readonly True if the event is of a type that bubbles.
Boolean readonly True if the default action associated with the event can be canceled with preventDefault().
Boolean readonly True if this event can be captured.
Boolean readonly The event target object which is currently handling the event. During capturing and bubbling, this is different from the property target.
Varies readonly The click count for a mouse-click event.
String readonly The current phase of event propagation; one of none, target, capture, bubble.
Object readonly The event target object for this event.
Date readonly The date and time at which the event occurred.
String readonly The name of the event that this object represents.
Varies readonly The ScriptUI element that this event relates to.

Methods

UIEvent

Creates an event.

type String The event type. See UIEvent.type property.
captures Boolean Set to true if this event can be captured.
bubbles Boolean Set to true if the event bubbles.
view? Object The ScriptUI element that this event relates to.
detail? Number The click count for a mouse-click event.
void

Initializes a UI event as a core W3C event.

type String The event type.
captures Boolean Set to true if this event can be captured.
bubbles Boolean Set to true if the event bubbles.
cancelable Boolean Set to true if the default action is cancelable.
void

Initializes an event.

type String The event type.
captures Boolean Set to true if this event can be captured.
bubbles Boolean Set to true if the event bubbles.
view? Object The ScriptUI element that this event relates to.
detail? Number The click count for a mouse-click event.
void

Prevents the default action associated with this event from being called.

void

Stops the propagation of this event.

Return 2

Methods that return a UIEvent.