# OptionType documentation

## TypeScript declaration

### [OptionType](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L82-L82>)

**Kind:** type alias

```
import type { OptionType } from '@siemens/element-ng/filtered-search';
```

Type for options

```
type OptionType = string | OptionCriterion
```

### Types Documentation

### [OptionCriterion](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L88-L106>)

**Kind:** interface

```
import type { OptionCriterion } from '@siemens/element-ng/filtered-search';
```

It allows to specify a different value between the one which is rendered and the one which is used for the search.

```
interface OptionCriterion
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [iconClass](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L100-L100>) (optional) | `string` | The icon to be displayed besides value in the typeahead |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L92-L92>) (optional) | `TranslatableString` | The label to show |
| [selected](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L105-L105>) (optional) | `boolean` | Shows whether the option is selected in the multi-select dropdown |
| [value](<https://github.com/siemens/element/blob/main/projects/element-ng/filtered-search/si-filtered-search.model.ts#L96-L96>) | `string` | The value to use on searching |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
