You need to sign in to do that
Don't have an account?
why we use custom component event in salesforce lightning?
Why do we use component custom event in Lightning, what are the use case of using custom component events.
Standard event like button click can do any work in lighting still we use custom components event, Please explain.
Thanks,
Parteek
Standard event like button click can do any work in lighting still we use custom components event, Please explain.
Thanks,
Parteek
We use component events to communicate with parent component as Veena Sundara said. Using component event we can pass values from child to parent component and can manipulate parent data as per child record changes. Standard Events like button click only use for calling the component JS controller actions.
Thanks for quick response.
I am still not clear about component events, could you please elobrate a use case with some code.
http://sfdcmonkey.com/2017/08/09/add-delete-rows-dynamic/
This is a blog in which two events are using.
Regards,
Ashif