This file contains 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> | |
{lwcPrettyProperty} | |
</template> |
This file contains 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
import { createElement } from "lwc"; | |
import tdd from "c/tdd"; | |
describe("c-tdd", () => { | |
afterEach(() => { | |
// The jsdom instance is shared across test cases in a single file so reset the DOM | |
while (document.body.firstChild) { | |
document.body.removeChild(document.body.firstChild); | |
} | |
}); |
This file contains 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
public with sharing class CMTService { | |
public List<CMTWrapper> getCMTs() { | |
List<CMTWrapper> cmtWrappers = new List<CMTWrapper>(); | |
List<CMT__mdt> cmts = [SELECT Example_Field_1__c, Example_Field_2_c FROM CMT__mdt]; | |
for(CMT__mdt c : cmts) { | |
CMTWrapper cmtWrapper = new CMTWrapper(c.Example_Field_1__c, c.Example_Field_2__c); | |
cmtWrappers.add(cmtWrapper); | |
} | |
return cmtWrappers; |
This file contains 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
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:hasSobjectName" access="global" > | |
<lightning:recordEditForm recordId="{!v.recordId}" objectApiName="{!v.sObjectName}"> | |
<lightning:messages /> | |
<lightning:inputField fieldName="Name" /> | |
<lightning:inputField fieldName="<INSERTNAMESPACEHERE>__LookupField__c" /> | |
<lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" onclick="{!c.handleClick}" /> | |
</lightning:recordEditForm> | |
</aura:component> |
This file contains 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
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" > | |
<aura:attribute name="record" | |
type="Opportunity" | |
default="{ 'sobjectType': 'Opportunity' }"/> | |
<aura:attribute name="error" | |
type="String"/> | |
<aura:attribute name="columns" | |
type="integer" | |
description="The number of columns"/> | |
<aura:attribute name="fields" |
This file contains 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
<aura:component > | |
<aura:attribute name="recordIds" | |
type="List" | |
access="public" | |
description="An array of Ids"/> | |
<aura:attribute name="records" | |
type="Map" | |
description="The records!" | |
default="{}"/> | |
<aura:attribute name="errors" |