> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IDashboardTabSwitchedPayload

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/events/tabs.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Payload of the [IDashboardTabSwitched](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardtabswitched/index.md) event.

**Signature:**

```typescript
export interface IDashboardTabSwitchedPayload 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [newTabId](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardtabswitchedpayload/index.md#idashboardtabswitchedpayloadnewtabid) | `readonly` | string | **_(ALPHA)_** Identifier of the newly active tab. |
| [previousTabId](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardtabswitchedpayload/index.md#idashboardtabswitchedpayloadprevioustabid) | `readonly` | string \| undefined | **_(ALPHA)_** Identifier of the previously active tab (undefined if no tab was active). |
| [source?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardtabswitchedpayload/index.md#idashboardtabswitchedpayloadsource) | `readonly` | [DashboardTabSwitchSource](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardtabswitchsource/index.md) | **_(ALPHA)_** _(Optional)_ What triggered this tab switch. |

## Property details

### IDashboardTabSwitchedPayload.newTabId

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Identifier of the newly active tab.

**Signature:**

```typescript
readonly newTabId: string;
```

### IDashboardTabSwitchedPayload.previousTabId

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Identifier of the previously active tab (undefined if no tab was active).

**Signature:**

```typescript
readonly previousTabId: string | undefined;
```

### IDashboardTabSwitchedPayload.source

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

What triggered this tab switch.

**Signature:**

```typescript
readonly source?: DashboardTabSwitchSource;
```

#### Remarks

Omit for a regular user-initiated tab switch. See [DashboardTabSwitchSource](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardtabswitchsource/index.md) for the recognized values and their effect.
