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.
-
Indicates that a tab has been closed.
-
Indicates that a tab has been created successfully.
-
Indicates a tab was focused.
-
Indicates that a tab has been refreshed.
-
Indicates that a tab has been replaced successfully.
-
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.
-
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.
-
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.