Example layouts using the Lightning layout and card components

In this section, we will explore some examples of how to create the layout using Lightning:layout, Lightning:layoutItem, and Lightning:card.

You can use Salesforce DX format for all of the code shared in this chapter. Clone the repository using the git clone https://github.com/PacktPublishing/Learning-Salesforce-Lightning-Application-Development command. Once you have the project, cd into chapter3 and follow the instructions to create a scratch org and push the source code.

Take the following steps to observe the output of the examples covered in this section:

  1. Start by creating a Lightning Application via the Developer Console, as follows:
  1. Copy the markup code provided in ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.