HTML Template 1. searchComponent.html Custom CSS Create or update the CSS file for the component to ensure the search input takes the full width and the overall layout is clean. 2. searchComponent.css Final JavaScript Controller 3. searchComponent.js Ensure the JavaScript controller correctly manages the state of selected contacts and filtered contacts. Step 3: Deploy theContinue reading “Create a search component in lwc”
Category Archives: lwc
File upload in public library through lwc and generate public link
To allow file upload to a public library through Lightning Web Component (LWC) and generate a public link, you need to: fileUploader.html fileUploader.js FileUploaderWithPublicLink class Demo Once you select the file and click on upload, file will be uploaded in ‘Asset Library’ library, public link will be generated which you will see at lwc UIContinue reading “File upload in public library through lwc and generate public link”
How to create an Apex class using the Tooling API from within a Salesforce LWC and Apex
To create an Apex class using the Tooling API from within a Salesforce Lightning Web Component (LWC) and Apex, you need to make an HTTP callout to the Tooling API. This involves several steps, including setting up the necessary permissions, handling authentication, and constructing the API request. Step 1: Set Up Permissions Ensure your SalesforceContinue reading “How to create an Apex class using the Tooling API from within a Salesforce LWC and Apex”
LWC guide for beginner
Lightning Web Components (LWC) is a powerful framework designed by Salesforce for creating fast and interactive user interfaces. This guide will introduce you to LWC and provide various code examples to help you start building components effectively. What are Lightning Web Components? Lightning Web Components (LWC) is a modern framework built on the latest webContinue reading “LWC guide for beginner”