LightningOutApp defines the configuration of a Lightning Out application: its application name, configured components, allowed host domains, enablement state, and selected runtime. It describes how the application is configured, not the implementation of its components. An enabled configuration alone does not establish that embedding works or that users can access component data.
Key Elements
| Element | What the Element Controls |
|---|---|
applicationName | The application's configured name. |
components | The configured component list. Each component entry identifies a component through componentName. |
componentName | The component identified by an entry under components. |
allowedDomains | The allowed host-domain list. Each domain entry identifies a host through hostDomain. |
hostDomain | The host identified by a domain entry under allowedDomains. |
isEnabled | The application's Boolean enablement state, expressed as true or false. Read it together with the component and domain lists. |
runtime | The selected runtime. The exact allowed values are CLWR and LWR_CORE. |
Behavior and Constraints
Enablement, components, and domains describe different parts of the configuration. To assess the application's configured exposure, read isEnabled, components, and allowedDomains together. The enablement flag does not identify which components or hosts are configured; those details are in their respective lists.
The component and domain lists also have separate purposes. A componentName identifies a configured component, while a hostDomain identifies a configured host. Neither list, even when combined with enablement, demonstrates successful embedding or user access to the data used by a component.
The runtime is a distinct configuration choice. Both CLWR and LWR_CORE are allowed values, but that does not establish that they are interchangeable for a particular component. Do not treat two application configurations as equivalent merely because their component and domain lists match when their runtime selections differ.
Common Questions
Does LightningOutApp contain the component implementation?
No. It contains application configuration, including component names. It does not describe the implementation of those components.
Is setting isEnabled to true enough to make an embedded app work?
No. Read isEnabled with the configured components and allowed host domains. These settings alone do not demonstrate successful embedding or user access to component data.
Where are components and allowed domains configured?
Components are identified by componentName within component entries under components. Hosts are identified by hostDomain within domain entries under allowedDomains.
What values does LightningOutApp runtime accept?
runtime accepts CLWR and LWR_CORE. Their presence in the allowed values does not mean that either runtime can be substituted for the other for a particular component.