Book Image

Salesforce Lightning Cookbook

By : Syed Chand Shah
Book Image

Salesforce Lightning Cookbook

By: Syed Chand Shah

Overview of this book

<p><span id="description" class="sugar_field">The new Lightning Experience combines three major components—Lightning Design System, Lightning App Builder, and Lightning Components—to enable anyone to quickly and easily create beautiful, modern enterprise apps. If you wish to meet the challenges that Lightning throws at you head-on, then look no further because this practical book will be your faithful companion and ensure that you make best use of the Lightning platform.</span></p> <p><span class="sugar_field"><span id="description" class="sugar_field"> The book starts by walking you through the three major Lightning Components and helps you enable and configure a Lightning solution. You will explore the art of working with standard components and build a basic layout for the application. Then, you will add more advanced components using the Lightning Framework. Finally, you will also build and migrate reports and dashboards to make your app look more professional. Towards the end of the book, you’ll make use of Design System to work with Salesforce data and lay out the entire page with the components that you’ve built, before integrating Visualforce in your application.</span> </span></p>
Table of Contents (11 chapters)

Creating a custom Lightning component


In this recipe, we will create one custom component. We develop Lightning Components in the built-in integrated development environment (IDE), the developer console. Also, we will see the basic and key techniques of Lightning component development.

Getting ready

We need a developer console. We have developed, tested, and debugged the apex logic, as well as the Visualforce pages with the built-in IDE. In the same developer console, we are going to develop the Lightning Components.

 

The Lightning Framework is a JavaScript-based user interface component framework. Component-based means components are reusable, such as in Visualforce. Lightning Framework, which is JavaScript-based, is case sensitive, unlike Visualforce Framework which is case insensitive. Consider the following example:

helloWorld HelloWorld

Here, helloWorld, which has h in lower case, and W in upper case, and HelloWorld, which has initial upper case. Both will work same on Visualforce Framework...