This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AccountPaginationController | |
* ---------------------------- | |
* This Apex controller is used for retrieving a paginated list of Account records. | |
* | |
* Key Features: | |
* - Retrieves specific fields from the Account object. | |
* - Enforces field-level security using WITH SECURITY_ENFORCED. | |
* - Orders the Account records by the Name field for consistent display. | |
* - Designed for use with Aura or Lightning Web Components (LWC) via @AuraEnabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AccountFormController | |
* ---------------------- | |
* This Apex controller provides utility methods for retrieving metadata-related information | |
* about the Account object, specifically the picklist values for the Rating field. | |
* | |
* Key Features: | |
* - Retrieves and formats picklist values for use in Lightning components. | |
* - Uses field metadata to ensure consistent and dynamic picklist value retrieval. | |
* - Designed for use with Aura or Lightning Web Components (LWC) via @AuraEnabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CollectionUtils | |
* ---------------------- | |
* @description | |
* A library of generic, type-safe collection methods for transforming and working with | |
* lists of SObjects. This utility is designed to simplify the conversion of SObject collections | |
* into keyed Maps, supporting nested field access and maintaining type safety. | |
* | |
* Key Features: | |
* - Converts lists into Maps using specified fields as keys. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* OpportunityValidationTrigger | |
* | |
* This trigger is responsible for validating the Opportunity record data before insert or update. | |
* The trigger checks for disallowed characters in the Opportunity's string and text area fields. | |
* If a disallowed character is found, an error message is added to the Opportunity record. | |
*/ | |
trigger OpportunityValidationTrigger on Opportunity(before insert, before update) { | |
// Regular expression to match disallowed characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--disConnectedCallbackChildLwc.html--> | |
<template> | |
<p>Child Component</p> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--constructorEx.html--> | |
<template> | |
<lightning-card title="Constructor Example - LWC"> | |
<div style="padding: 1rem;"> | |
<lightning-button label="Sample Button"></lightning-button> | |
</div> | |
</lightning-card> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*child.css*/ | |
/*applying style to host directly*/ | |
:host { | |
display: block; | |
padding: 1rem; | |
margin: 1rem; | |
transition: all 0.3s; | |
} | |
/*applying style to host using a class*/ | |
:host(.child-host) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<lightning-button label="Sample Button"></lightning-button> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*serverSideLazyLoadingInDataTableWithScrollBar.css*/ | |
.container { | |
padding: 0.5rem; | |
} | |
.table-container { | |
border: 1px solid #d8dde6; | |
background-color: #fff !important; | |
overflow-y: auto; | |
min-height: 90px; | |
} |