Book Image

Learning Salesforce Lightning Application Development

By : Mohit Shrivatsava
Book Image

Learning Salesforce Lightning Application Development

By: Mohit Shrivatsava

Overview of this book

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.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Foreword
Contributors
Preface
Index

Component markup and using Lightning base components for layouts


Component markup resides in the .cmp file. Markup consists of HTML elements, aura components (aura:component provides default rendering implementation), and other custom child components. Custom components start with the default namespace c. Apart from the c namespace, Salesforce provides out-of-the-box components with a UI and the Lightning namespace (components with the Lightning namespace are referred to as base components).

Note

It is recommended to use a new Lightning namespace when using out-of-the-box components because Lightning namespace components automatically apply the Salesforce Lightning Design System (SLDS), CSS, and also provide in-built JavaScript functions such as validations, currency formatting, and localization.

The syntax for the component is as follows:

<aura:component>
<!-- Optional coponent attributes here -->
<!-- Optional HTML markup -->
</aura:component>

Component definition aura...