# SiSelectOptionTemplateDirective documentation

**Kind:** directive

**Selector:** `[siSelectOptionTemplate]`

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

The directive allows to template/customize the option rendering in the dropdown. It is also used for rendering selected values in the input if no input template is provided. This requires using the [SiSelectSimpleOptionsDirective](<../SiSelectSimpleOptionsDirective/index.html#SiSelectSimpleOptionsDirective>) to specify options as input.

Example:

```html
<si-select [options]="[{ id: 'good', title: 'Good' }, { id: 'fair', title: 'Fair' }, { id: 'bad', title: 'Bad' }]" >
  <ng-template siSelectOptionTemplate let-option>{{ option.value | uppercase }}</ng-template>
</si-select>
```

```
directive SiSelectOptionTemplateDirective
```
