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…
Tag: Lightning Component
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…
Close Quick Action from Lightning Web Components
Lightning Web Components are not supported in Quick Action. But we can encapsulate them in lightning components to overcome this. But the issue comes if we want to close Quick Action Modal from Lightning Web Components (LWC). As we don’t have native support here so we will use a quick hack here. Today we will…
Use Static Resource In Lightning Web Components
As a Salesforce developer we know how important Static resource are. We can upload and can refer them using CDN also. But it is always suggested to import third party library into salesforce static resource. If you still didn’t started Lightning Web Components ( LWC ) you can do that here. Today we will check…
Custom Toast Component in Lightning
In Lightning we can use show toast event to show message to users. But they are not supported everywhere. So today we will create Custom Toast Component in Lightning. We have used SLDS toast here. So this component is supported on all UI, no matter if you are on LEX or in one.app Here we…
Get Current User Details in Lightning Web Components
If you are a Salesforce developer or Admin the word hearing you most is Lightning Web Components (LWC). So today we will check how we can get Current User Id in Lightning Web Components. Finally using this Id we will fetch the user details and show them on UI. We will also do the same…
Upload File to Google Drive Using Lightning Component
We have covered many points in lightning, but integration is the one we never touch. So today we will do Integration with google drive and upload File to Google Drive Using Lightning Component. Firstly we will do the Authentication with Google Drive. Once we get the Acces Token we will use that token to make…
Dependent Picklist Using Lightning Component
The number of base lightning component is increasing in each release. But there are still few missing area. One of them is Dependent picklist. So today we will create Dependent picklist using Lightning:select. This is a dynamic component, we just need to pass object name and dependent and controlling field. It will give you selected…
Lightning DataTable: Lazy Loading with Inline Editing and Actions
So previously we developed a Lightning DataTable with Lazy Loading component. But there are many standard features missing in that component. So I enhanced that Lightning DataTable component and included the support for inline editing, Row Level Action and pass the selected records in parent component.Here we can change multiple records. And on click of Save…
Lightning Web Components: The New Development Style
Lightning and Lightning Web Components. In Salesforce Eco system these are the most common word you hear these days. Now we are coming to year end but Lightning is still going strong with lots of update and new feature. This week Salesforce introduce Lightning Web components (LWC). This is just not another update this is…