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.
form = new FormGroup({
price: new FormControl(0)
});<input euiInputNumber formControlName="price" [fractionDigits]="2" />
ControlValueAccessor
Validator
OnInit
| Providers |
)
)
|
| 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
|
| registerOnValidatorChange | ||||||
registerOnValidatorChange(fn: () => void)
|
||||||
|
Parameters :
Returns :
void
|
| setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
|
Set the disabled state of the input element.
Parameters :
Returns :
void
|
| validate | ||||||
validate(control: AbstractControl)
|
||||||
|
Parameters :
Returns :
ValidationErrors | null
|
| writeValue | ||||||
writeValue(obj: any)
|
||||||
|
Parameters :
Returns :
void
|