Monday, July 10, 2017
Friday, July 7, 2017
lightning:spinner component
<aura:application controller="echoController" extends="force:slds">
<lightning:button label="Toggle" variant="brand" onclick="{!c.showSpinner}"/>
<div class="exampleHolder">
<lightning:spinner aura:id="mySpinner" class="slds-hide"/>
</div>
</aura:application>
({
showSpinner: function (component, event, helper) {
helper.showSpinner(component);
var action = component.get('c.echo');
action.setCallback(this,function(response){
var state = response.getState();
if (state === "SUCCESS") {
helper.hideSpinner(component);
}
});
$A.enqueueAction(action);
}
})
({
showSpinner: function (component, event, helper) {
var spinner = component.find("mySpinner");
$A.util.removeClass(spinner, "slds-hide");
},
hideSpinner: function (component, event, helper) {
var spinner = component.find("mySpinner");
$A.util.addClass(spinner, "slds-hide");
}
})
public class echoController {
@AuraEnabled
public static String echo(String message) {
return message;
}
}
Wednesday, June 28, 2017
Lightning: Advanced Events Example
This example is built on the simpler component and application event examples. It uses one notifier component and one handler component that work with both component and application events.
Reference: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_demo.htm
Tuesday, June 27, 2017
Links: Salesforce Developers Blog
Lightning
Building a Lightning Connect Proof of ConceptCommunicating between Lightning Components and Visualforce Pages
Create your own Lightning Progress Bar
Create a Lightning Component for Drag-and-Drop Profile Pictures
Creating a Lightning Weather Component
Creating a Salesforce Lightning Map Component
Creating Lightning Components: Events and Messaging
Creating Loosely Coupled Components with the Lightning Component Framework and App Builder
danpeter's Blog Posts
Debugging Lightning Components
Extending Lightning Components by Example
Introducing the Salesforce Lightning Inspector
JavaScript Buttons, Lightning, and You: A Blog Series
Lightning Components Best Practices: Caching Data with Storable Actions
Lightning Inter-Component Communication Patterns
Loading External JavaScript And CSS Libraries To Lightning Components
LockerService and Lightning Container Component: Securely Using Third-Party Libraries in Lightning Components
Mass Update Leads Using the Lightning Component Framework
Mastering Salesforce Lightning Design System Grids and Lightning Layouts
Modularizing Code in Lightning Components
New Version of DreamHouse Packed with New Lightning Features
Salesforce Lightning inputLookup: the missing component
Summer ’17 Highlight: Diving Into Lightning Data Service
Understanding System Events In Lightning Components – Part 1
Understanding System Events In Lightning Components – Part 2
Data Model
Simplify Your Salesforce Data with Custom Metadata Type RelationshipsSalesforce Data Security Model — Explained Visually
Introducing custom metadata types: the app configuration engine for Force.com
Integrating Multiple Orgs using the OAuth 2.0 SAML Bearer Assertion Flow
SOQL
SOQL for the SQL DeveloperBasic SOQL Relationship Queries
Declarative Tools
Enhancing Workflows with The Weather Company Data serviceLightning Process Builder: Taking Point-and-Click Development to a New Level
Cross-Object Owner Fields: A Powerful New Formula Option
Lightning Process Builder Hot Topics: Q&A with Product Manager, Shelly Erceg
Lightning Training
https://www.salesforce.com/services-training/learnlightning.jspCreating Lightning Components: Single Page Applications
Apex
Trust, but Verify: Apex Metadata API and SecurityIntroducing the Apex Metadata API
Machine-to-Machine Salesforce Integrations in Java with REST and SOAP
Integrating With Salesforce Using Apex
Testing Apex Callouts using HttpCalloutMock
Force.com SOAP API Sample WSDL Structures
Avoiding Apex Speeding Tickets (Concurrent Request Limits via Synchronous Callouts)
Introducing Lightning Connect Custom Adapters
Queueable Apex: More Than an @future
Subscribe to:
Posts (Atom)