LWC articles
Page 2 of 3 · 28 articles
LWC Data Binding: Examples and Best Practices
LWC Design Attributes: Make Components Admin-Friendly
Tired of admins asking you to change a label or a hex color? Expose those settings in the App Builder with LWC Design...
LWC dynamic import: How to load components on demand
Loading every heavy component at once is what makes your pages sluggish. Dynamic imports pull in the code only when...
Refresh LWC data with Platform Events and refreshApex
Ever update a record in Salesforce and watch your custom LWC keep showing the old data? Here is how to use a Platform...
How to disable paste lightning input in Salesforce LWC
Stopping users from pasting into a lightning-input field is awkward because of the Shadow DOM. A native HTML input or a...
Build a Custom Salesforce Flow Counter LWC for Better UX
Standard number inputs in Screen Flows are a pain on a phone. This guide walks through a custom counter component that...
LWC class binding - Use objects and arrays in API 62.0
Dynamic CSS classes in Salesforce used to mean string concatenation and the bugs that came with it. LWC class binding...
Close your Dispatcher Console custom action programmatically
Build a custom action for the Dispatcher Console and the modal tends to sit there after your logic finishes. Standard...
Refresh GraphQL Query Results in Lightning Web Components
Refresh cached GraphQL query results in LWC with refreshGraphQL(result) so the UI shows current data after a write.
Quickly Creating Cases from the Salesforce Service Console using Utility Actions
How to build a Service Console utility that lets agents capture case details fast, using an LWC wrapped in a small Aura...
Handling Encrypted SSN in LWC: Show Full or Masked SSNs Based on User Permission
Display SSNs safely in LWC: check View Encrypted Data in Apex, mask the value for anyone without it, and send the...
How to Create a Tooltip in Lightning Datatable
Show an account's phone and address on hover in a lightning-datatable, using a URL column tooltip with LWC and Apex.