Dynamic Interactions in Salesforce is a new way of communication between Lightning Web Components and Lightning App Builder. Now Developer can configure and expose the event in components. And admin can configure and create applications with components that communicate and transform based on user interactions, all in the Lightning App Builder UI. So an event…
Category: Lightning
Use Lightning Web Components for Quick Action
Create Quick Actions with Lightning Web Components(LWC) and learn how to use Lightning Web Components for Quick Action (Headless and Screen).
Styling Hooks for Lightning Web Components
So today we will check what are Styling Hooks and how we can create Styling Hooks for Lightning Web Components. With existing Lightning Web Components its hard for the developers to do CSS customization. We need to use hacks to overwrite CSS and with any UI update they might stop working. So from Winter 21…
Error Handling in Lightning Web Components
Today we will check how we can do error handling in Lightning Web Components (LWC). For this, we will create a utility method. Check my previous post for how we can share JavaScript code in Lightning Web Components and create a utility method. We will also use the Custom alert notification component to display the…
Share JavaScript Code in Lightning Web Components
Sometimes we need to share JavaScript code in Lightning Web Components (LWC). As code reusability is good feature and we can use same in LWC as well. To share JavaScript code between Lightning Web Components we need to create ES6 module. An ES6 module is a JavaScript file that explicitly exports variables or functions that…
Local Development Server for Lightning Web Components
If you also use Playground to quickly test Lightning web components, then you are also aware that Salesforce will shut down playground in December 2020. But don’t worry we have Local Development Server for Lightning Web Components. The Local Development Server is a Salesforce CLI plug-in that configures and runs a Lightning Web Components-enabled server…
Async-Await in Lightning Web Components
In the last post, we checked Promise in Lightning Web Components. While they provide easy control to Asynchronous JavaScript, but they also need different code syntax. Recently a new feature is added in JavaScript Async-Await. So today we will check how we can use in Async-Await Lightning Web Components to improve the flow.Async-Await builds on…
Promise in Lightning Web Components
Promise in Lightning Web Components is very important. In LWC we call methods Asynchronous. So we don’t have much control in order of execution if we have multiple methods. Prior to promises events, callback functions were used but they had limited functionalities and created unmanageable code. Promises are the ideal choice for handling asynchronous operations…
Callout from Lightning web components
Today we will check how we can make Callout from Lightning web components. We have two methods available here. Firstly we can call the Apex and from there we can make SOAP or REST API callout. and Secondly, we can directly make a simple REST call from the Lightning web components’ controller.So today we will…