Tag: LWC
How to send data from the Parent component to the Child component in LWC
The Lightning Web Component (LWC) is widely used over the salesforce platform to build components that can work dynamically and are a combination of Custom HTML and modern JavaScript. Depending on the need, they can be displayed over Home Page,
What is LightningAlert in LWC
LightningAlert is a new feature that comes in the summer 22 release. Chrome and Safari decided not to support window.alert so salesforce provides an inbuilt feature called LightningAlert. To use this feature first, we need to import LightningAlert. Example:
How to Expand and Collapse Multiple Accordion Sections using a Single Button/Icon in LWC
Lightning Accordion Lightning Accordion is used to display the content in sections that can be displayed and hidden in a single click. There can be multiple sections in an accordion that can be expanded or collapsed independently of each other,
Dispatch event from child to parent in LWC
In LWC (Lightning Web Components), you can dispatch an event from a child component to its parent by using the standard CustomEvent API. Here’s an example of how you can do it: In the child component, create a custom event:
LWC using the aura component
Step 1: Launch the developer console and add a lighting component (also known as an aura component). Step:2 Fill in the details in the pop-up box below and click “Submit.” It will create a component like the one below. Download
Custom Quick Actions on the LWC page when Modal is created using an Aura component
Quick Actions can’t be used with Lightning Web components. Let’s say that the record page has a button that, when clicked, integrates an Aura component that displays a modal. On the Lightning Web Component page, the coding is complete, and
Getter in LWC
LWC component does not allow us to perform expressions in an HTML file so if we want to achieve any expressions in an HTML file in this case we can complete the expression in our getter in a .js file
Rest CallOut in LWC
Rest CallOut can be made in Salesforce in two ways: Server-side controller (Apex Class) Client-side controller (Js Controller) Server-side controller (Apex Class): We can make an API callout from Apex , which provides support for REST and SOAP callouts. Before
How to deploy the LWC component on a Local Development Server
You can deploy your LWC component on a local development server. Once you deploy your component on a local server, then you do not need to deploy again and again to see the output. You just need to save your