FormControlOptions
interface
stable
Interface for options provided to a FormControl.
API
interface FormControlOptions extends AbstractControlOptions { nonNullable?: boolean | undefined; initialValueIsDefault?: boolean | undefined; override validators?: ValidatorFn | ValidatorFn[] | null | undefined; override asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null | undefined; override updateOn?: "change" | "blur" | "submit" | undefined;}
nonNullable
boolean | undefinedWhether to use the initial value used to construct the FormControl as its default value
as well. If this option is false or not provided, the default value of a FormControl is null.
When a FormControl is reset without an explicit value, its value reverts to
its default value.
initialValueIsDefault
boolean | undefinedvalidators
ValidatorFn | ValidatorFn[] | null | undefinedThe list of validators applied to a control.
asyncValidators
AsyncValidatorFn | AsyncValidatorFn[] | null | undefinedThe list of async validators applied to control.
updateOn
"change" | "blur" | "submit" | undefinedThe event name for control to update upon.
Description
Interface for options provided to a FormControl.
This interface extends all options from AbstractControlOptions, plus some options
unique to FormControl.
Jump to details