# SiSearchBarInputDirective documentation

**Kind:** directive

**Selector:** `input[siSearchBarInput]`

```
import { SiSearchBarInputDirective } from '@siemens/element-ng/search-bar';
```

Input used by [SiSearchBarComponent](<../../components/SiSearchBarComponent/index.html#SiSearchBarComponent>) instead of its default input.

```
directive SiSearchBarInputDirective extends DefaultValueAccessor implements OnInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/search-bar/si-search-bar-input.directive.ts#L48-L48>) | `boolean` | `false` |  |
| [readonly](<https://github.com/siemens/element/blob/main/projects/element-ng/search-bar/si-search-bar-input.directive.ts#L46-L46>) | `boolean` | `false` |  |

#### Attributes and Methods

##### onChange

**Modifiers:** inherited

**Type:** `(_: any) => void`

The registered callback function called when a change or input event occurs on the input element.

@docs-private

Inherited from `BaseControlValueAccessor`

##### onReset

[Source for onReset](<https://github.com/siemens/element/blob/main/projects/element-ng/search-bar/si-search-bar-input.directive.ts#L74-L80>)

```
onReset(): void
```

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

##### onTouched

**Modifiers:** inherited

**Type:** `() => void`

The registered callback function called when a blur event occurs on the input element.

@docs-private

Inherited from `BaseControlValueAccessor`

##### registerOnChange

**Modifiers:** inherited

Registers a function called when the control value changes.

@docs-private

Inherited from `BaseControlValueAccessor`

Implements `ControlValueAccessor`

```
registerOnChange(fn: (_: any) => {}): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| fn | `(_: any) => {}` |  | The callback function to register |

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

##### registerOnTouched

**Modifiers:** inherited

Registers a function called when the control is touched.

@docs-private

Inherited from `BaseControlValueAccessor`

Implements `ControlValueAccessor`

```
registerOnTouched(fn: () => void): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| fn | `() => void` |  | The callback function to register |

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