# SiTabsetLegacyComponent documentation

**Kind:** component

**Selector:** `si-tabset-legacy`

```
import { SiTabsetLegacyComponent } from '@siemens/element-ng/tabs-legacy';
```

Deprecated: Use the new components from `@siemens/element-ng/tabs` instead. See [https://element.siemens.io/components/layout-navigation/tabs/\#code](<https://element.siemens.io/components/layout-navigation/tabs/#code>) for usage instructions.

```
component SiTabsetLegacyComponent implements AfterViewInit, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [selectDefaultTab](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L84-L84>) | `boolean` | `true` | If selectDefaultTab is passed as 'false', this implies no default tab selection i.e. on initial load of tabset component no tab gets selected. |
| [selectedTabIndex](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L105-L107>) | `number` |  | Returns the currently selected tab index. |
| [tabButtonMaxWidth](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L110-L110>) (optional) | `number` |  | Define an optional max-width in px for the tab buttons. The minimum value is `100`. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [deselect](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L122-L122>) | `SiTabDeselectionEvent` | Event emitter to notify when a tab became inactive. |
| [selectedTabIndexChange](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L117-L117>) | `number` | Event emitter to notify about selected tab index changes. You can either use bi-directional binding with \[(selectedTabIndex)\] or separate both with \[selectedTabIndex\]=... and (selectedTabIndexChange)=... |

### Types Documentation

### [SiTabDeselectionEvent](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L32-L45>)

**Kind:** interface

```
import type { SiTabDeselectionEvent } from '@siemens/element-ng/tabs-legacy';
```

```
interface SiTabDeselectionEvent
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [cancel](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L44-L44>) | `() => void` | To be called to prevent switching the tab |
| [tabIndex](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L40-L40>) | `number` | The index of target tab |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/tabs-legacy/si-tabset/si-tabset-legacy.component.ts#L36-L36>) | `SiTabLegacyComponent` | The target tab |
