Background Utility Item

lightning:backgroundUtilityItem

Enables a component to be used at the app level without rendering any UI.

For Use In

Lightning Experience

Implement the lightning:backgroundUtilityItem interface to allow a component to be used as an app-level component that is created when the app loads, and runs code without rendering itself in the app UI.

Components that implement this interface are added to the app through the Select Utility Items milestone in Setup.

This example shows how to implement a background utility item that listens for lightning:tabCreated events when the app loads, and invokes lightning:workspaceAPI methods to prevent more than 10 tabs from opening.

In your client-side controller, limit the number of tabs when a new tab is created.

No specifications to show