Tag: LWC
LWC to create a custom editable datatable.
LWC also provides a standard editable datatable, but it can’t be flexible in design. So we can create a custom datatable by using LWC in the following way, in which we can make changes as per our needs. LWC HTML
Call Apex Function inside an LWC Function
While creating the LWC component whenever you want to call an apex function you use the @wire function in it and pass parameter in it which has @track or @api decorator attached with it like @track id; or @api id;
Salesforce | Lightning Navigations in LWC
Lightning Navigations are used to generate a URL or navigate to a page reference. With lightning navigation, we can navigate to Pages, Records, Lists, Webpages, Custom tabs, Reports, etc. There are the steps to use the navigation in LWC: Step
Difference Between Aura Components and LWC
Four separate technologies are used together for web components in Salesforce: Custom Elements: JavaScript APIs help to develop the HTML elements with custom templates, tag names like and behaviours. Shadow DOM: For isolation of CSS and JavaScript living Standard DOM
Salesforce | UI Record API in LWC
UI Record API is used for fetching, creating, updating and deleting the particular record without using the SalesForce Apex Class. These APIs are: Get Record Get Field Value Create Record Update Record Delete Record Below is the sample code of
Salesforce | Iterate list in LWC
In LWC, we have two ways to display the list of records in our web component for:each: for:item=”currentItem”: This is used to access the current item. for:index=”index”: used for accessing the current item’s index. key={uniqueId}: used to assign a unique
Salesforce | Decorators in LWC
There are three decorators in lightning web components. These decorators add functionality to property or function. @api: To expose a public property, decorate this with @api. Public properties are reactive which means changes to the value of a reactive property
How to create a collapsible section in Salesforce LWC
Problem: We can create a collapsible section in Salesforce Lightning Web Component using slds-section slds-is-open LWC classes or HTML <details> tag. But we are are using LWC classes slds-section and slds-is-open we need to provide svg icon as given the
Lightning Record Edit Form (LWC)
In Salesforce, LWC allows us to use lightning-record-edit-form which implements Lightning Data Service and doesn’t require any additional Apex controllers to create or update record data. It also takes care of field-level security and sharing for us, so that users