# SiTreeViewItemComponent documentation

**Kind:** component

**Selector:** `si-tree-view-item`

```
import { SiTreeViewItemComponent } from '@siemens/element-ng/tree-view';
```

```
component SiTreeViewItemComponent implements OnInit, AfterViewInit, FocusableOption, DoCheck
```

#### Attributes and Methods

##### focus

[Source for focus](<https://github.com/siemens/element/blob/main/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.ts#L512-L514>)

Focuses the tree item.

Implements [FocusableOption](<https://material.angular.dev/cdk/a11y/api#FocusableOption>)

```
focus(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### getLabel

[Source for getLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.ts#L519-L521>)

Get tree item label.

Implements `ListKeyManagerOption`

```
getLabel(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)
