Created
July 6, 2017 13:43
-
-
Save iamsonal/bdd293f516b28e99730648812dfa83ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application controller="echoController" extends="force:slds"> | |
<aura:attribute name="echoes" type="String[]"/> | |
<div class="slds-grid slds-wrap container"> | |
<div class="slds-size--3-of-12">Foreground Action</div> | |
<div class="slds-size--3-of-12">Background Action</div> | |
<div class="slds-size--3-of-12">Storable Action</div> | |
<div class="slds-size--3-of-12">Abortable Action</div> | |
<div class="slds-size--3-of-12"> | |
<ui:button label="Generate Echo" press="{!c.doForeground}"/> | |
</div> | |
<div class="slds-size--3-of-12"> | |
<ui:button label="Generate Echo" press="{!c.doBackground}"/> | |
</div> | |
<div class="slds-size--3-of-12"> | |
<ui:button label="Generate Echo" press="{!c.doStorable}"/> | |
</div> | |
<div class="slds-size--3-of-12"> | |
<ui:button label="Generate Echo" press="{!c.doAbortable}"/> | |
</div> | |
</div> | |
<ul class="" role="presentation"> | |
<aura:iteration items="{!v.echoes}" var="echo"> | |
<c:EchoComponent echo="{!echo}" /> | |
</aura:iteration> | |
</ul> | |
<aura:if isTrue="{! v.echoes.length > 0 }"> | |
<ui:button label="Clear" press="{!c.doClear}"/> | |
</aura:if> | |
<auraStorage:init name="actions" persistent="false" clearStorageOnInit="true" defaultExpiration="30"/> | |
</aura:application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment