# lightning:tabUpdated

Indicates that a tab has been updated successfully.

## Response

| Name    | Type   | Description                |
| ------- | ------ | -------------------------- |
| `tabId` | string | The ID of the updated tab. |

## Example

This example prints a line to the browser’s developer console when a tab is updated, and then prints that tab’s `tabId`.

Component code:

```html
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <lightning:workspaceAPI aura:id="workspace" />
    <aura:handler event="lightning:tabUpdated" action="{! c.onTabUpdated }"/> 
</aura:component>
```

Controller code:

```javascript
({
    onTabUpdated : function(component, event, helper) {
        console.log("Tab Updated"); 
        var updatedTabId = event.getParam("tabId"); 
        console.log(updatedTabId); 
    },
})
```
