This file contains hidden or 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
| function callbackExample() { | |
| setTimeout(_callback, 1000); | |
| console.log('This appears instantaneously'); | |
| } | |
| function promiseExample() { | |
| _longRunningOperation() | |
| .then(() => { | |
| console.log('This appears later'); |
This file contains hidden or 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
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew tap caskroom/cask && brew cask install java | |
| https://developer.salesforce.com/media/salesforce-cli/sfdx-osx.pkg | |
| sfdx update | |
| sfdx force:auth:web:login --setalias hub-org | |
| sfdx force:config:set defaultdevhubusername=username --global |
This file contains hidden or 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:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global"> | |
| <div class="slds-m-around--xx-large slds-text-align--center"> | |
| <lightning:button label="Fire toast event" onclick="{! c.fireToastEvent }"/> | |
| </div> | |
| </aura:component> |
This file contains hidden or 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 extends="force:slds"> | |
| <!-- Pure HTML and SLDS Grid --> | |
| <div class="slds-text-heading--large slds-p-around--small">Pure HTML and SLDS Grid</div> | |
| <div class="slds-grid slds-wrap"> | |
| <div class="slds-p-around--small slds-size--1-of-1">1</div> | |
| <div class="slds-p-around--small slds-size--1-of-2 slds-medium-size--5-of-6 slds-large-size--8-of-12">2</div> | |
| <div class="slds-p-around--small slds-size--1-of-2 slds-medium-size--1-of-6 slds-large-size--4-of-12">3</div> | |
| <div class="slds-p-around--small slds-size--1-of-1 slds-medium-size--1-of-2 slds-large-size--1-of-3">4</div> | |
| <div class="slds-p-around--small slds-size--1-of-1 slds-medium-size--1-of-2 slds-large-size--1-of-3">5</div> |
This file contains hidden or 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:event type="APPLICATION"> | |
| <aura:attribute name="param" type="String"/> | |
| </aura:event> |
This file contains hidden or 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:event type="COMPONENT"> | |
| <aura:attribute name="param" type="String"/> | |
| </aura:event> |
This file contains hidden or 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:component > | |
| <aura:method name="myMethod" action="{!c.executeMyMethod}"> | |
| <aura:attribute name="param1" type="String"/> | |
| <aura:attribute name="param2" type="String"/> | |
| </aura:method> | |
| </aura:component> |
This file contains hidden or 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:component> | |
| <aura:attribute name="childAttribute" type="String"/> | |
| <aura:handler name="change" value="{!v.childAttribute}" action="{!c.onChildAttributeChange}"/> | |
| <aura:component> |
NewerOlder