# SiAutocompleteListboxDirective documentation

**Kind:** directive

**Selector:** `[siAutocompleteListboxFor]`

**Exported as:** `siAutocompleteListbox`

```
import { SiAutocompleteListboxDirective } from '@siemens/element-ng/autocomplete';
```

```
directive SiAutocompleteListboxDirective<T> implements OnInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/autocomplete/si-autocomplete-listbox.directive.ts#L43-L43>) | `string` | `` `__si-autocomplete-listbox-${SiAutocompleteListboxDirective.idCounter++}` `` |  |
| [siAutocompleteDefaultIndex](<https://github.com/siemens/element/blob/main/projects/element-ng/autocomplete/si-autocomplete-listbox.directive.ts#L56-L56>) | `number` | `0` | Index of the option that is pre-selected when the listbox opens. Pass `-1` to start with no active item. |
| [siAutocompleteListboxFor](<https://github.com/siemens/element/blob/main/projects/element-ng/autocomplete/si-autocomplete-listbox.directive.ts#L46-L48>) (required) | `SiAutocompleteDirective<T>` |  | The `SiAutocompleteDirective` instance this listbox is attached to. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [siAutocompleteOptionSubmitted](<https://github.com/siemens/element/blob/main/projects/element-ng/autocomplete/si-autocomplete-listbox.directive.ts#L58-L58>) | `T \| undefined` |  |

#### Attributes and Methods

##### active

[Source for active](<https://github.com/siemens/element/blob/main/projects/element-ng/autocomplete/si-autocomplete-listbox.directive.ts#L116-L123>)

**Modifiers:** readonly

**Type:** `SiAutocompleteOptionDirective<T> | null`
