lightning__GlobalAction
Target
Enables a component to be used as a global quick action. For use only in the Field Service mobile app.
Configures the component for a record action and defines component properties. The targetConfigs
tag contains at least one targetConfig
tag.
Configures a page type with this attribute.
Attribute | Description | Required |
---|---|---|
targets | Specify one or more page types in the targets attribute, such as <targetConfig targets="lightning__GlobalAction"> or <targetConfig targets="lightning__GlobalAction,lightning__AppPage"> . The targets attribute value must match one or more of the page types that you listed under <targets> . | Yes |
actionType | Specify the type of Lightning web component global action. Valid values are:
ScreenAction . |
lightning__GlobalAction
doesn't support component properties.
LWC global quick actions are available for use only in the Field Service mobile app. These actions aren’t available in Lightning Experience on mobile or desktop.
To access the global action from the bottom navigation bar on the Field Service mobile app, from Setup, in the Quick Find box, enter Publisher Layouts
, and then select Publisher Layouts. Add the action to the Salesforce Mobile and Lightning Experience Actions section of the global publisher layout.
To enable a component to be used as a quick action on a record page record, use lightning__RecordAction
instead.
You can't change the action type after you've defined it in the configuration file. For example, you can't change a component's action type from Action
to ScreenAction
or vice versa after you deploy your component.
See Also
- XML Configuration File Elements
- Salesforce Help: Create Global Quick Actions
- GitHub: LWC Mobile Samples