Tab Closed

lightning:tabClosed

Fires when a Console workspace or subtab has been successfully closed.

For Use In

Lightning Experience

lightning:tabClosed is an application event that indicates a tab has been closed successfully. This event is supported in Lightning console apps only.

Handle the event using aura:handler.

1<aura:component implements="flexipage:availableForAllPageTypes" access="global">
2  <lightning:workspaceAPI aura:id="workspace" />
3  <aura:handler event="lightning:tabClosed" action="{! c.onTabClosed }" />
4</aura:component>

For more information, see the Salesforce Console Developer Guide.

Attributes 

NameDescriptionTypeDefaultRequired
tabIdThe closed tab ID.stringYes