Grid - Custom Inline Component
Introduction
Aura Implementation
Aura Component
<aura:component implements="force:hasRecordId" access="global">
<aura:attribute name="style" type="String" access="global" />
<aura:attribute name="recordData" type="Object" />
<aura:attribute name="recordError" type="String" />
<aura:attribute name="closeDate" type="Object" />
<aura:handler name="change" value="{!v.recordData}" action="{!c.handleRecordDateChange}" />
<force:recordData
aura:id="recordData"
recordId="{!v.recordId}"
fields="Name,CloseDate"
targetFields="{!v.recordData}"
targetError="{!v.recordError}"
/>
<aura:if isTrue="{! v.closeDate }">
<div class="slds-align_absolute-center">
Closing
<span style="{!v.style}">
<lightning:relativeDateTime value="{!v.closeDate}" />
</span>
</div>
</aura:if>
</aura:component>Inline Component Configuration

LWC Implementation
LWC Component
Inline Component Configuration

Last updated
Was this helpful?