What is the event in salesforce?

There are two type of event in lightning salesforce.

  1. Component Event
  2. Application Event
Events are fired from JavaScript controller action. It is fire automatic when a button on click.
there are two type of attribute apply on the event.

1) Register event: - where we click on the button, we need to add a register event

2) Handler event: - where we set the value, we need to add the handler event

Component event:- it is bounding to child component to parent component only. we can get and set the attribute value from child component to parent parent component.

Applicaiton Event:- it is not bounding child to parent, it will work all over the org. We can get and set the attribute value in all over the org.

Create Lightning Event:-

repCheckboxEvent.evt
repCheckbox.cmp
repCheckboxController.js
childCom.cmp
childComJs.js


To know more live demo source code in Salesforce lightning, Trigger, Visualforce & LWC, Use this link..



What is the event in salesforce? What is the event in salesforce? Reviewed by Admin on 1:24 AM Rating: 5

3 comments:

header banner -- www.w3web.net



Powered by Blogger.