packages/eui/packages/components/eui-input-number/eui-number-control.directive.ts
Directive for the EuiInputNumberComponent. This directive is used to handle the value changes of the input element and update the value of the directive and the form control. It also implements the ControlValueAccessor interface to allow the directive to be used with reactive forms.
ControlValueAccessor
OnInit
Providers |
{
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => EuiInputNumberDirective), multi: true,
}
|
Selector | input[euiInputNumber][formControl],input[euiInputNumber][formControlName],input[euiInputNumber][ngModel] |
Methods |
registerOnChange | ||||||
registerOnChange(fn: any)
|
||||||
Parameters :
Returns :
void
|
registerOnTouched | ||||||
registerOnTouched(fn: any)
|
||||||
Parameters :
Returns :
void
|
setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
Set the disabled state of the input element.
Parameters :
Returns :
void
|
writeValue | ||||||
writeValue(obj: any)
|
||||||
Parameters :
Returns :
void
|