Book description
Build, design, and style beautiful and informative applications on the Salesforce Lightning platform
Key Features
- Build and Test Lightning Components that enhance application usability and adaptability
- Apply Security Best Practices to your Custom Lightning Components
- Design Lightning Components for Salesforce UIs such as Lightning Pages, Salesforce 1 Application, Communities, and more.
Book Description
Built on the Salesforce App Cloud, the new Salesforce Lightning Experience combines three major components: Lightning Design System, Lightning App Builder, and Lightning Components, to provide an enhanced user experience. This book will enable you to quickly create modern, enterprise apps with Lightning Component Framework.
You will start by building simple Lightning Components and understanding the Lightning Components architecture. The chapters cover the basics of Lightning Component Framework semantics and syntax, the security features provided by Locker Service, and use of third-party libraries inside Lightning Components. The later chapters focus on debugging, performance tuning, testing using Lightning Testing Services, and how to publish Lightning Components on Salesforce AppExchange.
What you will learn
- Understand Lightning Components architecture
- Learn Locker security best practices
- Debug and Improve performance of your Lightning Components
- Use third-party libraries along with Lightning Component Framework
- Learn how to publish Lightning Components on AppExchange
- Use Lightning Out to take your Lightning Components outside the Salesforce platform
Who this book is for
This book is for Salesforce developers or developers from other platforms who are familiar with HTML, CSS, and JavaScript and want to build and test Salesforce Lightning components. No knowledge of Salesforce Lightning is required.
Table of contents
- Title Page
- Copyright and Credits
- PacktPub.com
- Foreword
- Contributors
- Preface
-
Introduction to the Lightning Component Framework
- Lightning Experience
- Lightning Component architecture
- Setting up a Salesforce developer organization to enable the building of Lightning Components
- The Lightning Design system
- Summary
-
Exploring Salesforce DX
- Enabling the developer hub in your Salesforce organization
- Installing the Salesforce DX CLI
- Salesforce DX commands
- Lightning commands
- Metadata API commands
- Data import and export commands in Salesforce DX
- Installing the Visual Studio extension pack for DX
- Summary
-
Lightning Component Building Blocks
-
Component markup and using Lightning base components for layouts
- Component definition aura:component
- Lightning base components for layout and layout items
- Lightning card base component
-
Example layouts using the Lightning layout and card components
- Horizontal alignment using the Lightning layout base component
- Vertical alignment using the Lightning layout base component 
- Stretching a LayoutItem using the flexibility attribute
- Creating multiple rows and controlling the size of the row in Lightning layout
- Lightning layout to handle multiple devices
- Nested page layout using Lightning Layouts
- Understanding attributes
- Using Expression syntax
- JavaScript controller and helper
- Wiring the client-side to the server using Apex controllers
- Summary
-
Component markup and using Lightning base components for layouts
-
The Lightning JavaScript API
- Technical requirements
- Using component get and set methods
- Using the find function to locate the DOM
- Introducing Locker Service
- APIs available in $A top-level functions
- Format date/DateTime using the Aura Localization Service
- Dynamically creating components using $A.createComponent()
- Modifying the DOM in the RENDERER JavaScript file of the component bundle
- Using custom labels in Lightning Components
- ES6 support in Lightning Components
- Summary
- Events in the Lightning Component Framework
-
Lightning Data Service and Base Components
- Lightning Data Service
- Example components using Lightning Data Service
-
Lightning base components
- An introduction to Lightning input field components
- Creating a contact edit form using the Lightning input field and RecordEditForm components
- Using the Lightning output field component
- The list view component 
- Creating a tree view using the tree and tree grid components
- Formatting output data using Lightning base components
- Using the datatable component
- Using Lightning input components
- Using the carousel component
- Summary
-
Using External JavaScript Libraries in Lightning Components
-
Third-party JavaScript libraries in Lightning Components
- Attributes
- Events
- Integrating a third-party library into Lightning Components
- Integrating the Select2 JavaScript library into Lightning Components
- Integrating the MomentJs library into Lightning Components
- Creating a Locker Service-compliant JavaScript bundle using webpack
- ChartJs in Lightning Components
- Making client-side calls to external sites using JavaScript
- Communication between the Lightning main frame and iframe
- Rendering a React application in a Lightning Component using Lightning:container
- Summary
-
Third-party JavaScript libraries in Lightning Components
- Debugging Lightning Components
-
Performance Tuning Your Lightning Component
- Storable actions
- Avoiding nested aura:if in aura:iteration
- Events strategy for performance and ease of code maintenance
- Optimizing JavaScript in Lightning Components
- Unbound expression bindings
- Using the Lightning data service
- Leveraging Lightning base components
- Optimizing Apex code
- Disabling Debug Mode for production
- Summary
- Taking Lightning Components out of Salesforce Using Lightning Out
- Lightning Flows
- Making Components Available for Salesforce Mobile and Communities
- Lightning Navigation and Lightning Console APIs
- Unit Testing Lightning Components
-
Publishing Lightning Components on AppExchange
- Namespacing Salesforce developer instances for managed package generation
- The impact of namespacing Salesforce instances on the component bundle
- Creating scratch Orgs with namespaces
- Creating a managed package
- Documenting your components using the auradoc file
- Using the design file to allow admins to configure attributes
- Publishing components on AppExchange
- Summary
- Other Books You May Enjoy
Product information
- Title: Learning Salesforce Lightning Application Development
- Author(s):
- Release date: July 2018
- Publisher(s): Packt Publishing
- ISBN: 9781787124677
You might also like
book
Hands-On Low-Code Application Development with Salesforce
Explore a wide range of low-code tools in the Salesforce platform for building customized CRM applications …
book
Practical Salesforce Development Without Code: Building Declarative Solutions on the Salesforce Platform
Use this hands-on guide to build powerful solutions on the Salesforce platform without using a single …
book
Learn Salesforce Lightning: The Visual Guide to the Lightning UI
Refer to this invaluable how-to guide for basic training on Salesforce Lightning. Salespeople and technical users …
book
DevOps for Salesforce
Implement DevOps for Salesforce and explore its features Key Features Learn DevOps principles and techniques for …