Salesforce Lightning Aura Component

Salesforce

Infinite Loading in lightning:datatable

Sample Code: Component: <aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="init" value="{!this}" action="{!c.init}"/> <div style="height: 300px"> <lightning:datatable data="{! v.acctList }" columns="{! v.mycolumns }" keyField="Id" hideCheckboxColumn="false" enableInfiniteLoading="true" onloadmore="{! ....

Salesforce

How to Hyperlink a Record in lightning:datatable?

Sample Code: Component: <aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="init" value="{!this}" action="{!c.fetchAccounts}"/> <lightning:datatable data="{! v.acctList }" columns="{! v.mycolumns }" keyField="Id" hideCheckboxColumn="true"/> </aura:component> Component Controller: ({ fetchAccounts ....

Salesforce

How to use onsuccess action in lightning:recordEditForm?

Sample Code: Component: <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" > <lightning:recordEditForm recordId="0036A00000QAY0CQAX" objectApiName="Contact" onsuccess="{!c.callSuccess}"> <lightning:messages /> <lightning:inputField fieldName="FirstName" /> <lightning:inputField fieldName="LastName" /> <lightning:inputField fieldName="Email" /> <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update"/> </lightning:recordEditForm> </aura:component> Controller: ....