Lightning component actions are custom actions that
invoke a Lightning component. They support Apex and JavaScript and provide a secure way
to build client-side custom functionality. Lightning component actions are supported only in the
Salesforce mobile app and Lightning Experience.
Required Editions
| Available in: both the Salesforce mobile app and Lightning Experience |
| Available in: Essentials, Group, Professional,
Enterprise, Performance, Unlimited, Contact Manager, and
Developer Editions
|
You can add Lightning component actions to an object’s page layout using the page layout
editor, or to the global publisher layout using the Global Publisher Layout editor. If you
have Lightning component actions in your org, you can find them in the Mobile & Lightning
Actions category in the page layout editor’s palette.
Lightning component actions can’t call just any Lightning component in your org. For a
component to work as a Lightning component action, it must be configured for that purpose and
implement either the force:LightningQuickAction or
force:LightningQuickActionWithoutHeader interfaces. You
must also set a default value for each component attribute marked as required.
If you plan on packaging a Lightning component action, the component the action invokes must
be marked as access=global.
- Create a Lightning Component Action
Creating a Lightning component action is similar to creating a regular quick action, and you do it in the same place in Setup. All you need is a Lightning component in your org for the quick action to trigger.