Activity Forums Salesforce® Discussions What is lightning event in Salesforce?

  • Deepak

    Member
    February 12, 2020 at 3:24 pm

    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!

     

  • Arun

    Member
    February 13, 2020 at 6:02 am

    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.

  • Pooja

    Member
    February 23, 2020 at 4:26 pm

    Lighting events are provided by Salesforce Library that can be often used based on your requirement.There are 2 types of events in Salesforce:-
    1.Component Events
    2.Application Events

  • Ratnesh

    Member
    February 24, 2020 at 5:19 am

    There are 2 sorts of occasions in Salesforce:-

    1.Component Events

    2.Application Events

    Part Events-

    A part occasion is an occasion that is terminated by a lightning segment. A segment occasion can either be taken care of by the part itself or it very well may be dealt with by whatever another segment which is available in the chain of importance that gets the occasion.

    Application Events-

    An application occasion is commonly similar to a communicated message. Like on the off chance that you send a communicate, at that point all the recipients that are designed to acknowledge that communicate message get that message. Essentially, an application occasion is terminated by a part and the various segments that have the handler characterized to get that occasion are informed when the occasion is terminated. Application Events are not bound by any progressive system or relationship.

Log In to reply.

Popular Salesforce Blogs