• #69342
    Salesforce | Anjali Anjali #8
    Forcetalks

    What is lightning event in Salesforce?

    What is lightning event in Salesforce?

    #69350
    Salesforce | Deepak Deepak #6
    Forcetalks

    Hi Anjali,

    Salesforce Lightning Events are broadly classified into four:

    1.System Events
    2.Lightning Application Events from library
    3.Application Events
    4.Component Events

    SYSTEM EVENTS
    System events are fired automatically by lightning framework and during component initialization, rendering or attribute value change etc.

    LIGHTNING APPLICATION EVENTS FROM LIBRARY

    These events are provided by Salesforce Library that can be often used based on your requirement. However, some of these library events might not be supported in Salesforce app and Lightning Experience or a standalone app all at the same time. So it is recommended to instantiate the event using $A.get() to determine from where your component is running i.e Salesforce app and Lightning Experience or a standalone app.

    APPLICATION EVENTS

    Application Events helps in passing values between two independent events (without parent child relationship). It behaves just like a broadcast message wherein any device that has the receiver turned on can receive the broadcast message sent from a single device.

    COMPONENT EVENTS

    Component Events are required in order to pass values from child component to parent. Parent component (receiver) will be handling the event fired by the child components (sender).

    Hope it helps!

     

    #69377
    Salesforce | Arun Arun Pal #14
    Forcetalks

    There are 2 types of events in Salesforce:-
    1.Component Events
    2.Application Events

    Component Events-
    A component event is an event that is fired by a lightning component. A component event can either be handled by the component itself or it can be handled by any other component which is present in the hierarchy that receives the event.
    Application Events-
    An application event is generally like a broadcast message. Like if you send a broadcast, then all the receivers that are configured to accept that broadcast message receive that message. Similarly, an application event is fired by a component and all the other components that have the handler defined to receive that event are notified when the event is fired. Application Events are not bound by any hierarchy or relationship.

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

Popular Salesforce Blogs

Steps to Connect Pardot to Salesforce +

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?