# SiHeaderDropdownTriggerDirective documentation

**Kind:** directive

**Selector:** `[siHeaderDropdownTriggerFor]`

**Exported as:** `siHeaderDropdownTrigger`

```
import { SiHeaderDropdownTriggerDirective } from '@siemens/element-ng/header-dropdown';
```

Trigger to open dropdowns in a navbar. A dropdown will always be attached to the view, even if not visible.

If a dropdown is opened in desktop mode, it will be reattached to an overlay while being opened.

```
directive SiHeaderDropdownTriggerDirective implements OnChanges, OnInit, OnDestroy
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [dropdownData](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L66-L66>) | `unknown` | Context data passed to the dropdown template. |
| [siHeaderDropdownTriggerFor](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L64-L64>) (required) | `TemplateRef<unknown>` | Template rendered inside the dropdown. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [openChange](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L68-L68>) | `boolean` | Emits whenever a dropdown is opened or closed. |

#### Attributes and Methods

##### close

[Source for close](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L174-L213>)

Closes the dropdown.

```
close(options?: { all?: boolean; }): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L174-L174>) (optional) | `{ all?: boolean; }` |  |  |

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

##### isOpen

[Source for isOpen](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L126-L128>)

**Modifiers:** readonly

**Type:** `boolean`

Whether the dropdown is currently open.

##### open

[Source for open](<https://github.com/siemens/element/blob/main/projects/element-ng/header-dropdown/si-header-dropdown-trigger.directive.ts#L153-L171>)

Opens the dropdown.

```
open(): void
```

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