• #65961
    Salesforce | Yogesh Yogesh #6
    Forcetalks

    what is the use case of component event in lightning?

    what is the use case of component event in lightning?

    #65999
    Salesforce | Nikita Nikita #2
    Forcetalks

    Hi ,

    Here’s a simple use case of using a component event to update an attribute in another component.

    • A user clicks a button in the notifier component, ceNotifier.cmp.
    • The client-side controller for ceNotifier.cmp sets a message in a component event and fires the event.
    • The handler component, ceHandler.cmp, contains the notifier component, and handles the fired event.
    • The client-side controller for ceHandler.cmp sets an attribute in ceHandler.cmp based on the data sent in the event.

    for more detail you can refer https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_component_example.htm

    #66019
    Salesforce | Deepak Deepak #4
    Forcetalks

    The client-side controller for ceNotifier.cmp sets a message in a component event and fires the event. The handler component, ceHandler.cmp, contains the notifier component, and handles the fired event. The client-side controller for ceHandler.cmp sets an attribute in ceHandler.cmp based on the data sent in the event. A user clicks a button in the notifier component, ceNotifier.cmp.

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

Please to reply to this topic.

Popular Salesforce Blogs

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 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?