Developing Secure Code
Testing Components
fire()
getEventType()
getName()
getParam()
getParams()
getPhase()
getSource()
getSourceEvent()
getType()
pause()
preventDefault()
resume()
setParam()
setParams()
stopPropagation()
Previous PDF Versions
Event contains methods to work with events. Use an event to communicate between components.
Fires an event.
Returns the type of the event. Possible values are 'COMPONENT' or 'APPLICATION'.
Returns an event’s name.
Returns the value of an event’s parameter.
Returns the value of all an event’s parameters.
Returns the current phase of an event. Returns undefined if the event hasn’t been fired yet. Possible return values for application and component events are "capture", "bubble", and "default" once fired. A value event returns "default" once it’s fired.
Returns the source component that fired an event.
Returns the source event that fired this event, if it was fired by an event binding, such as {!e.myEvent}.
Returns the type of the event’s definition, such as 'c:myEvent'.
Pauses an event. Event handlers aren’t processed until Event.resume() is called. The handling process pauses in the current position of the event handler processing sequence. If the event is already paused, this method does nothing. This method throws an error if it’s called in the "default" phase.
Prevents the default phase execution for this event. This method throws an error if it’s called in the "default" phase.
Resumes event handling for this event from the same position in the event handler processing sequence from which it was previously paused. If the event isn’t paused, this method does nothing. This method throws an error if it’s called in the "default" phase. Any remaining event handlers might execute in the current call stack or might be deferred and executed in a new call stack. Therefore, the exact timing behavior is not predictable.
Sets a parameter for an event. This method doesn’t modify an event that has already been fired.
Sets parameters for an event. This method doesn’t modify an event that has already been fired.
Sets whether the event can bubble or not. This method throws an error if called in the "default" phase.