AbstractControlOptions

提供给 AbstractControl 的配置项接口。

Interface for options provided to an AbstractControl.

      
      interface AbstractControlOptions {
  validators?: ValidatorFn | ValidatorFn[] | null
  asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null
  updateOn?: 'change' | 'blur' | 'submit'
}
    

属性

属性说明
validators?: ValidatorFn | ValidatorFn[] | null

应用于该控件的验证器列表。

The list of validators applied to a control.

asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null

应用于该控件的异步验证器列表。

The list of async validators applied to control.

updateOn?: 'change' | 'blur' | 'submit'

会导致更新控件的事件名称。

The event name for control to update upon.