Salesforce Lightning Experience

Salesforce

lightning:treegrid select child rows upon selecting parent row in Salesforce

Sample Code:Example.cmp:<aura:component implements="force:appHostable"                 controller="AccountListController">     <aura:attribute name="gridColumns" type="List" />    <aura:attribute name="gridData" type="Object" />    <aura:attribute name="selectedRows" type="list" />        <aura:handler name="init" value="{!this}" action="{!c.fetchAccounts}"/>        <lightning:treeGrid columns="{! v.gridColumns }"        data="{! v.gridData }"        ....

Salesforce

How to make radio button in front of label using Aura components in Salesforce?

Sample Code:Component:<aura:component implements="force:appHostable,forceCommunity:availableForAllPageTypes">        <aura:attribute name="options" type="List" default="[                                                        { 'value': 'option1', 'label': 'Sales' },                                                        { 'value': 'option2', 'label': 'Force' }                                                        ]"/>    <aura:attribute name="value" type="String" default="option1"/>        <div class="slds-box slds-theme--default">               ....

Salesforce

How to get Record Type Id by overriding standard action in Salesforce Lightning?

Add lightning:actionOverride and lightning:hasPageReference to the list of interfaces in the aura:component tag. Sample Code: Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference" > <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> Lightning Component JavaScript Controller: ....

Salesforce

Overriding New button in Salesforce Lightning Experience with a Custom Lightning Aura Components

Navigate to a lightning component or standard record page creation based on Record Type in Salesforce Lightning NewContact Lightning Component: <aura:component implements="lightning:actionOverride, lightning:hasPageReference"> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> </aura:component> NewContact Lighting ....