From 01c9be7c082429804a63203c7f4522e59fb3d7a4 Mon Sep 17 00:00:00 2001 From: Abbas Jafry Date: Wed, 31 Dec 2025 09:57:31 +0530 Subject: [PATCH] Updated example codes --- instructions/lwc.instructions.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/instructions/lwc.instructions.md b/instructions/lwc.instructions.md index 336a4a5e..3675b0da 100644 --- a/instructions/lwc.instructions.md +++ b/instructions/lwc.instructions.md @@ -283,6 +283,8 @@ handleToggleChange(event) { import { getRecord } from 'lightning/uiRecordApi'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; +const FIELDS = ['Account.Name', 'Account.Industry', 'Account.AnnualRevenue']; + export default class MyComponent extends LightningElement { @api recordId; @@ -323,6 +325,10 @@ export default class MyComponent extends LightningElement { } } + performOperation() { + // Developer-defined async operation + } + showSuccessToast() { const event = new ShowToastEvent({ title: 'Success', @@ -378,12 +384,14 @@ Prefer `lwc:if`, `lwc:elseif` and `lwc:else` for conditional rendering (API v58. {error.message} -