Component Events
A component event is fired from an instance of a
component. A component event can be handled by the component that
fired the event or by a component in the containment hierarchy that receives the
event.
-
Component Event Propagation
The framework supports capture and bubble phases for the propagation of component events. These phases are similar to DOM handling patterns and provide an opportunity for interested components to interact with an event and potentially control the behavior for subsequent handlers.
-
Create Custom Component Events
Create a custom component event using the <aura:event> tag in a .evt resource. Events can contain attributes that can be set before the event is fired and read when the event is handled.
-
Fire Component Events
Fire a component event to communicate data to another component. A component event can be handled by the component that fired the event or by a component in the containment hierarchy that receives the event.
-
Handling Component Events
A component event can be handled by the component that fired the event or by a component in the containment hierarchy that receives the event.