Tab Updated

lightning:tabUpdated

Fires when a Console workspace or subtab has been updated, such as when a label, icon, or content changes.

For Use In

Lightning Experience

lightning:tabUpdated is an application event that indicates a tab has been updated 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:tabUpdated" action="{! c.onTabUpdated }" />
4</aura:component>

In your client-side controller, retrieve the ID of the updated tab.

1({
2  onTabUpdated: function (component, event, helper) {
3    var updatedTabId = event.getParam("tabId");
4    console.log(updatedTabId);
5  },
6});

For more information, see the Salesforce Console Developer Guide.

Attributes 

NameDescriptionTypeDefaultRequired
tabIdThe ID of the tab that was updated.stringYes