

The component that fired the event or a component in the containment hierarchy that receives the event, can handle a component event. A component event is fired from an instance of a component. Salesforce Lightning Component Events is one of the types of custom events in the Lightning Framework. JavaScript controller actions that are triggered by a user interacting with the user interface, are used to fire Lightning events.Įvents are declared by the aura:event tag in a. The lightning framework is based on event-driven architecture that allows communication between different events. Salesforce Lightning Component Events Salesforce Lightning App Builder Salesforce Lightning Design System Salesforce Lightning Data Service Salesforce Lightning Component Events

The users who build their app and you as the component author can continue to make changes to make your component better. A developer doesn’t have to worry about the experience of the users while making changes to the components as the implementation is encapsulated. You would be allowed to assemble and configure them and create new components in an app.Ī component can contain HTML, JS, Apex controllers, CSS and other web-enabled codding so that you can build apps with excellent UIs to offer an even better UX.

These are available in the Lightning namespace. Salesforce provides a library of prebuilt components also known as the base Lightning components, such as the ones that come with the Lightning Design System styling. These are self-contained reusable units that represent a reusable section of the user interface. Lightning components can either be a single line of text or an entire app. By Rajat Kesarwani | Friday, 16:10 PM | 6 min read
