---
schema_version: "1"
id: 9d642e271e024b627b1d56888f2928738b2ce2bbea63af482bdf42819830e920
title: TabSwitchedEvent | Tableau Embedding API
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/embedding_api/reference/interfaces/TabSwitchedEvent.md
canonical_url: https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/TabSwitchedEvent.html
source_site: help.tableau.com
content_type: documentation
content_hash: 8d9cdbfce2969a5e1e4fe8c6c8fd3d42f8cb00bcf2790142f939eadfa8e8a638
description: Documentation for Tableau Embedding API
---
- TabSwitchedEvent

# Interface TabSwitchedEvent

An event that signals when a user selects a different tab in a workbook.

interface TabSwitchedEvent {  
    [newSheetName](#newsheetname): string;  
    [oldSheetName](#oldsheetname): string;  
}

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/EventInterfaces.ts:161

##### Index

### Properties

[newSheetName](#newsheetname) [oldSheetName](#oldsheetname)

## Properties

### `Readonly`newSheetName[](#newsheetname)

newSheetName: string

#### Returns[](#returns)

The name of the sheet that is active after the tab switch event.

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/EventInterfaces.ts:170

### `Readonly`oldSheetName[](#oldsheetname)

oldSheetName: string

#### Returns[](#returns-1)

The name of the sheet that was active before the tab switch event occurred.

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/EventInterfaces.ts:165

### Settings

Member Visibility

- Protected
- Inherited
- External

ThemeOSLightDark

### On This Page

Properties

[newSheetName](#newsheetname)[oldSheetName](#oldsheetname)