Type Alias OptionParameterOfRegisterValidator

OptionParameterOfRegisterValidator: {
    controlsMoreAttachValidator?: Control | Control[];
    isAttachFocusoutValidationImmediately: boolean;
    isAttachValidator: boolean;
    isGroupedTargetControls: boolean;
}

Optional argument types for the registerValidator, registerRequiredValidator methods

Type declaration

  • OptionalcontrolsMoreAttachValidator?: Control | Control[]

    Additional control or array of controls to attach the validation function to the focus out event

    If the validation target is an array, SyntaxError is thrown if true.

  • isAttachFocusoutValidationImmediately: boolean

    Immediately attach the validation function to the focus out event of the control to be validated, or

    Default is true for registerValidator, false for registerRequiredValidator.
    If isAttachValidator = false, setting it to true will throw a SyntaxError.

  • isAttachValidator: boolean

    Attach the validator function to the focus out event of the control to be validated when validate is executed, or

    Default is true

  • isGroupedTargetControls: boolean

    Whether the validation target is considered as one group

    If true, the validation target is considered a group and the function is executed only once, with only one error message.
    The error state may or may not be applied to all of the target controls (it is never applied to only some of the controls).
    Default is false.