In Salesforce, you can import static resources from the scoped module @salesforce/resourceUrl. Static resources in LWCs include images, style sheets, JavaScript, and archives (like.zip and.jar files). import myWgResource from ‘@salesforce/resourceUrl/resourceWgReference’;…
Tag: Salesforce
Working with LWC and Aura
In Salesforce, new Lightning web components (LWCs) can be created and added to projects that already contain Aura components. Alternatively, you can migrate incrementally according to your plan by swapping…
Putting Components Together
To make the code more reusable and maintainable, it is helpful to assemble apps and components using a container and a collection of smaller components. You can use the various…
CPQ: Split a Quote into Multiple Orders
Checking the Ordered checkbox in CPQ can be the simplest way to create an order. It can even be automated in some situations. By default, we have this method which…
Testing Lightning Web Components
Today, we are going to review how to test Lightning Web Components (LWCs) with jest tests. First, create local JavaScript files for your component tests. Together with the component itself,…
Component CSS Style Sheet Creation
Create a style sheet in the component’s folder to provide styles with the component. The component and sheet need to share the same name. The style sheet is automatically applied…