packages/components/eui-select/eui-select-control.directive.ts
Control value accessor for single-select dropdowns with EUI styling. Extends Angular's SelectControlValueAccessor to handle placeholder behavior and readonly state synchronization.
<select euiSelect [formControl]="myControl">
<option euiOption [ngValue]="item" *ngFor="let item of items">{{item.label}}</option>
</select>
ControlValueAccessor
OnChanges
DoCheck
| Providers |
)
|
| Selector | select:not([multiple])[formControlName][euiSelect],select:not([multiple])[formControl][euiSelect],select:not([multiple])[ngModel][euiSelect] |
Methods |
Inputs |
constructor()
|
| placeholder |
Type : string
|
| registerOnChange | ||||||
registerOnChange(fn: (value: any) => void)
|
||||||
|
Parameters :
Returns :
void
|
| setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| writeValue | ||||||
writeValue(value: any)
|
||||||
|
Sets the "value" property on the select element.
Parameters :
Returns :
void
|