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)

Using and configuring custom components


To use custom components in Lightning App Builder, you need to ensure that your domain is registered, tested, and deployed. Once this is done, we need to enable the component by implementing the required interfaces.

Getting ready

If we want to use the custom components in the record home page, we are going to implement flexipage:availableForRecordHome (both for the record page and the home page). If we want to use this component in any type of page, we have another interface called flexipage:availableForAllPageTypes.

If we want to use this component in the community builder, we need the forceCommunity:availableForAllPageTypes interface. If you remember, while we were defining a custom component, there were some checkboxes, which were nothing but the interfaces.

How to do it…

  1. First, we need to ensure that our domain is deployed. The second thing is that we have not implemented an interface, so it is not going to be there in the Lightning App Builder. In...