Lightning Events
Lightning Events:
- Component Events
- Application Events
Component Events:
The way of communication between the same component or the component in the hierarchy.
The sequence of component event propagation:
- Event fired
- Capture phase - the event is navigated from root component to source(Component that fired the event)
- Bubble phase - the event is navigated from the source component to the root container.
- The event can be stopped at any component by calling stopPropogation().
Application Events:
The way of communication between the same component or the component in the hierarchy in a traditional publish-subscribe model. All components that provide a handler for the event are notified.
The sequence of Application event propagation:
- Event fired
- Capture phase - the event is navigated from root component to source(Component that fired the event)
- Bubble phase - the event is navigated from the source component to the root container.
- The event can be stopped at any component by calling stopPropogation().
event.getSource() helps you determine which component fired an event. Same can be achieved by event.target for DOM elements
ex: event.getSource().get("v.name")
ex:
var
el = event.target;
event.getParam(
"value"
) helps getting the parameter values passed in the event
We welcomed every one of our companions and family members and we asked Rupert to do likewise. Social events
ReplyDeleteMerkur 3D Merkur 3D merkur 3D Safety Razor
ReplyDeleteMerkur 3D Merkur 3D Safety Razor. septcasino Merkur 3D Merkur 3D Safety 1xbet korean Razor. 1 review.$24.99 · In 메리트 카지노 stock