---
id: fast-foundation.treeitem.focusitem
title: TreeItem.focusItem() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [TreeItem](./fast-foundation.treeitem.md) &gt; [focusItem](./fast-foundation.treeitem.focusitem.md)

## TreeItem.focusItem() method

Places document focus on a tree item

<b>Signature:</b>

```typescript
static focusItem(el: HTMLElement): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  el | HTMLElement | the element to focus |

<b>Returns:</b>

void
