APIs available in $A top-level functions
The Aura
object is the top-level object in the JavaScript framework code. In this section, we will explore some of the utility functions that the Lightning component framework supports. To explore all of the supported JavaScript functions and APIs of the Lightning component framework, refer to the documentation in your Salesforce instance at https://<myDomain>.Lightning.force.com/auradocs/reference.app#reference
, where myDomain
is the custom domain set for the application.
Exploring the $A.Util APIs
The following table shows supported Util
functions:
Util Class | Description | Example Code |
| Adds a CSS class to a component. |
|
| Coerces truthy and falsy values into native Booleans. | |
| Checks whether the component has the specified CSS class. |
|