---
schema_version: "1"
id: c354bf7bae6c85e92eff08ce77a3a82e5912873abf88f721617dd8782c5cf2ef
title: Tab Updated
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/lightning/tabUpdated/aura-tab-updated.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/aura-tab-updated.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3e1e118150c784f2b49f38ed0f8f0c10f0a4a9be1bb859b4e774f103fca6116d
products:
  - Lightning Component Reference
---
# 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

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

`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`.

```html
<aura:component implements="flexipage:availableForAllPageTypes" access="global">
  <lightning:workspaceAPI aura:id="workspace" />
  <aura:handler event="lightning:tabUpdated" action="{! c.onTabUpdated }" />
</aura:component>
```

In your client-side controller, retrieve the ID of the updated tab.

```javascript
({
  onTabUpdated: function (component, event, helper) {
    var updatedTabId = event.getParam("tabId");
    console.log(updatedTabId);
  },
});
```

For more information, see the [Salesforce Console Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/).


:::::

:::::tab
## Attributes

| Name    | Description                         | Type   | Default | Required                                     |
| ------- | ----------------------------------- | ------ | ------- | -------------------------------------------- |
| `tabId` | The ID of the tab that was updated. | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |

:::::

::::::
