Events for

Use events and handlers in your Aura components and controllers to respond to events like workspace tabs opening, closing, or gaining focus. In Lightning web components, subscribe to Aura application events using their corresponding Lightning message channels.

Aura application events are received by all rendered Aura components, even those on background tabs. By default, the Lightning message channel events are received by active components only, such as those on the foreground tab or in activated utility bar components. Your component can receive all Lightning message channel events by subscribing with the optional APPLICATION_SCOPE parameter. For more information, see Define the Scope of the Message Service.

  • lightning:tabClosed

    Indicates that a tab has been closed.

  • lightning:tabCreated

    Indicates that a tab has been created successfully.

  • lightning:tabFocused

    Indicates a tab was focused.

  • lightning:tabRefreshed

    Indicates that a tab has been refreshed.

  • lightning:tabReplaced

    Indicates that a tab has been replaced successfully.

  • lightning:tabUpdated

    Indicates that a tab has been updated successfully.

  • Subscribe to Aura Application Events in LWC

    Subscribe to Aura application events using their corresponding Lightning message channels.

  • Lightning Web Component Events for Enhanced Messaging

    JavaScript can be executed when certain types of events occur in a console, such as when a user closes a tab. A few events are specific to Messaging. These events apply to Lightning web components in Lightning Experience only.

  • Aura Events for Enhanced Messaging

    JavaScript can be executed when certain types of events occur in a console, such as when a user closes a tab. A few events are specific to Messaging. These events apply to Aura components in Lightning Experience only.

  • Events for Chat

    JavaScript can be executed when certain types of events occur in a console, such as when a user closes a tab. A few events are specific to Chat. These events apply to Lightning Experience only.

  • Events for Omni-Channel

    JavaScript can be executed when certain types of events occur in a console, such as when a user closes a tab. There are a few events that are specific to Omni-Channel. These events apply to Lightning Experience only.