# SiSelectDropdownDirective documentation

**Kind:** directive

**Selector:** `[si-select-dropdown]`

```
import { SiSelectDropdownDirective } from '@siemens/element-ng/select';
```

Structural directive marking the dropdown template for custom selects built with [SiCustomSelectDirective](<../SiCustomSelectDirective/index.html#SiCustomSelectDirective>).

When placed on an `<ng-template>`, it automatically registers the template with the parent [SiCustomSelectDirective](<../SiCustomSelectDirective/index.html#SiCustomSelectDirective>).

Example:

```html
<ng-template si-select-dropdown contentType="listbox">
  <!-- custom dropdown content -->
</ng-template>
```

```
directive SiSelectDropdownDirective
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [closeOnTab](<https://github.com/siemens/element/blob/main/projects/element-ng/select/si-select-dropdown.directive.ts#L53-L53>) | `boolean` | `false` | Whether pressing Tab closes the dropdown.<br><br>Keep this disabled when the dropdown contains controls that users must reach with Tab. |
| [contentType](<https://github.com/siemens/element/blob/main/projects/element-ng/select/si-select-dropdown.directive.ts#L44-L44>) (required) | `SiSelectDropdownContentType` |  | Describes the kind of content rendered by the dropdown. The value is forwarded to the `aria-haspopup` attribute of the combobox host of the parent [SiCustomSelectDirective](<../SiCustomSelectDirective/index.html#SiCustomSelectDirective>). |

### Types Documentation

### [SiSelectDropdownContentType](<https://github.com/siemens/element/blob/main/projects/element-ng/select/si-select-dropdown.directive.ts#L15-L16>)

**Kind:** type alias

```
import type { SiSelectDropdownContentType } from '@siemens/element-ng/select';
```

Possible values for the `aria-haspopup` attribute exposed by the combobox host of a custom select.

```
type SiSelectDropdownContentType = 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'
```
