-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmartHome.cmp
38 lines (34 loc) · 1.32 KB
/
SmartHome.cmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<aura:component implements="force:lightningQuickAction" access="global">
<aura:attribute name="tabIcons" type="Boolean" default="false"/>
<aura:attribute name="demoMode" type="Boolean" default="true"/>
<c:rflibLoggerCmp aura:id="logger" name="SmartHome" appendComponentId="false" />
<lightning:tabset >
<lightning:tab >
<aura:set attribute="label">
<aura:if isTrue="{!v.tabIcons}">
<lightning:icon iconName="utility:connected_apps" size="small"/>
</aura:if>
Lights
</aura:set>
<c:SmartLights demoMode="{!v.demoMode}"/>
</lightning:tab>
<lightning:tab >
<aura:set attribute="label">
<aura:if isTrue="{!v.tabIcons}">
<lightning:icon iconName="utility:unlock" size="small"/>
</aura:if>
Locks
</aura:set>
<c:SmartLocks />
</lightning:tab>
<lightning:tab >
<aura:set attribute="label">
<aura:if isTrue="{!v.tabIcons}">
<lightning:icon iconName="utility:frozen" size="small"/>
</aura:if>
Temp
</aura:set>
<c:SmartThermostat />
</lightning:tab>
</lightning:tabset>
</aura:component>