Testing Lightning Web Components with JEST
Like we do for Apex, now we can also add some unit tests to our UI components. Making sure our component does not break and also preventing errors on real time coding.
Like we do for Apex, now we can also add some unit tests to our UI components. Making sure our component does not break and also preventing errors on real time coding.
Using uiObjectInfoApi
api will allow us to retrieve the available metadata about a specific object. Like object label, fields, recordtypes etc… all that and without writing a single line of APEX.
The UI base component of lightning data table allow you to have a full functioning data table with Salesforce Lightning Design System (SLDS).
All we need to do is to configure the data and columns based on the data payload and voila.
This article will try to give some practical examples and the TDLR; of the documentation.
Exploring the data table functions here will be useful to start using the native functionality that comes with this great magical component.
Custom metadata type object is customisable, deployable, packageable and upgradeable application metadata.
There are many use cases where we want or need a certain “placeholder” functionality or we want to have a certain configurable settings functionality per installation of your app.
Read more “Using Custom Metadata Type for App configuration” →
This article shows how to call REST endpoints from lightning web components.
The following example will get the IP Address of the current user and callout to get country code from third party service.