lightning components ver1.0

20
Mumbai Salesforce Developers Group Inaugural Meetup Introduction to Lightning Component Development - Akhil Anil (@Akanil403) Mumbai DG

Upload: akhil-anil-

Post on 06-Apr-2017

141 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Lightning components ver1.0

Mumbai Salesforce Developers Group

Inaugural Meetup

Introduction to Lightning Component Development - Akhil Anil (@Akanil403) Mumbai DG Leader www.force-base.com

Page 2: Lightning components ver1.0

Agenda

6.00 - 6.15 : Introduction6.15 – 7.30 : Lightning Component Development7.30 – 7.45 : Break out for Snacks7.45 – 8.30 : Questions & Answer session

Page 3: Lightning components ver1.0

What is the Lightning Component Framework ?

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

The framework supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Apex on the server side.

Page 4: Lightning components ver1.0

Highlights of the Lightning Framework

- Client centric UI framework for building dynamic apps for mobile and desktop devices

- Heavily relies on JavaScript on the client side to manage UI component metadata

- Uses an event-driven architecture for better decoupling between components

- Empowers the capability of building apps visually without code

Page 5: Lightning components ver1.0

Traditional Architecture of VF page and Server

Page 6: Lightning components ver1.0

How is the Lightning Framework different from the traditional one ?

Page 7: Lightning components ver1.0

Detailed Architecture

Page 8: Lightning components ver1.0

A Glance of the Lightning Component

Page 9: Lightning components ver1.0

Tools to be used for Development of Lightning applications

- Eclipse with Force.com IDE

- Sublime text with Force.com IDE

- Salesforce Developer Console

Page 10: Lightning components ver1.0

Build your First Lightning Component

Use Case : Build a Lightning component that would fetch the first 10 records from the Account object. This example is basically to illustrate how to call an apex method from a Lightning Component.

Page 11: Lightning components ver1.0

Start by building the Apex class method which can be recognized by the Lightning framework

All the methods that are exposed to the Lightning framework should have the @AuraEnabled annotation in it’s declaration as seen below

Page 12: Lightning components ver1.0

Construct the code for Lightning Component-Associate the component with Apex controller in the header-implement the force:appHostable interface so that component tab can be created-Define an attribute for the Account List

Page 13: Lightning components ver1.0

Define the methods for the Client Side Javascript Controller-Define a reference to the apex method-Invoke the apex method-Define a callback function for the callout.

Page 14: Lightning components ver1.0

Associate the component with a Lightning tab and see it in Lightning Experience

Page 15: Lightning components ver1.0

How to use the Lightning Design System to improve the look and feel of this Component ?

-Visit www.lightningdesignsystem.com and incorporate the Data tables in your component-Data tables are an enhanced version of an HTML table and are used to display tabular data.

Page 16: Lightning components ver1.0
Page 17: Lightning components ver1.0

How would the component look after incorporating the Lightning Design System ?

Page 18: Lightning components ver1.0

Notable videos to learn about Lightning

Lightning Developer Center in Salesforce

Introduction to Lightning Components (Salesforce)

Mastering Lightning Framework - Part 1 (JF Paradis)

Mastering Lightning Framework - Part 2 (JF Paradis)

Creating Lightning Components by Don Robis

Getting Started with Lightning By Sara Robin

Developing Lightning Components by Thomas Crouse

Learn Lightning Out with Andrew Fawcett

Page 19: Lightning components ver1.0

Notable blogs which talks about lightning components

http://bobbuzzard.blogspot.com/

http://peterknolle.com/posts

http://cloudyworlds.blogspot.com/

http://www.jitendrazaa.com/blog

http://pchittum.com/

http://andyinthecloud.com/category/lightning/

http://paulbattisson.com/blog

Page 20: Lightning components ver1.0

Thank You