涂煌豪
2022-04-11 bae4d41e9e63cbeed024cf8209011dd9c854d54c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" 
                access="global" >
 
    <aura:attribute name="tabIcons" type="Boolean" default="false"/>
    <aura:attribute name="demoMode" type="Boolean" default="true"/>
 
    <aura:attribute name="recordId" type="Id" />
    <aura:attribute name="property" type="Property__c" />
 
    <force:recordData recordId="{!v.recordId}" 
                      targetFields="{!v.property}" 
                      layoutType="FULL" />
 
    <lightning:card iconName="utility:power" title="Smart Home">
        
        <aura:set attribute="actions">
            {! v.property.Address__c}, {! v.property.City__c}&nbsp;{! v.property.State__c}
        </aura:set>
        
        <c:SmartHome demoMode="{!v.demoMode}" tabIcons="{!v.tabIcons}"/>        
        
    </lightning:card>        
 
</aura:component>