packages/components/eui-select/eui-select-option.directive.ts
Marks <option> as dynamic, so Angular can be notified when options change.
Supports object values via ngValue and synchronizes with readonly mode.
<option euiOption [ngValue]="user" [label]="user.name">{{user.name}}</option><option euiOption [selected]="isSelected" [value]="id">Label</option>See EuiSelectControlValueAccessor
OnDestroy
OnChanges
AfterViewInit
| Selector | option:not([eclSelectOption]):not([eclMultiselectOption]), option[euiOption] |
Inputs |
Accessors |
constructor()
|
| label |
Type : string
|
| ngValue |
Type : any
|
|
Tracks the value bound to the option element. Unlike the value binding, ngValue supports binding to objects. |
| selected |
Type : boolean
|
| ngValue | ||||||
setngValue(value: any)
|
||||||
|
Tracks the value bound to the option element. Unlike the value binding, ngValue supports binding to objects.
Parameters :
Returns :
void
|