In Winter 20 Release salesforce announce Lightning Message Service (LMS). We can use this single API to communicate between All Salesforce UI platform eg: Visualforce, Lightning Component, Lightning Web Components (LWC). Today I will share one demo where I will pass data between all type of components.We will create each component and I will also…
Category: Lightning Component
Export Data in CSV using JavaScript in Lightning
In Visualforce we can use ContentType to export data in different formats. But what if we want to do same in Lightning? There is no inbuilt native support provided for this. So today we will check how we can export data in CSV using JavaScript in Lightning. For this we will create a component in…
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…
Lightning Web Components: Datatable with LDS and Apex
Current week is Lightning Web Components (LWC) week. So I tried my hands on it and created a sample app. Using this sample app you will get the idea of Lightning Web Component (LWC) Datatable, LWC Lightning Data Service ( LDS ) RecordEditForm components. We will also check how to pass data between components using…
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…
Popup/Modal in Lightning Component
Modal is a very useful component. Modals display a dialog in the foreground of the app, interrupting a user’s workflow and drawing attention to the message. A modal blocks everything else on the page until it’s dismissed. A modal must be acknowledged before a user regains control over the app again. Today we will create…
Lightning Global Search Component
So today we will create Global Search Component in Lightning. Previously I have shared a search/Lookup component. But using that we can only search one object at a time. But sometimes we need to do search on multiple objects. So today we will create a Lightning Global Search Component. We can use this component to search…