Interface: FormValidators<TFormData, TFormValidator>#
Type parameters#
• TFormData
• TFormValidator extends Validator<TFormData, unknown> | undefined = undefined
Properties#
onBlur?#
optional onBlur: FormValidateOrFn<TFormData, TFormValidator>;
Optional function that validates the form data when a field loses focus, returns a ValidationError
Source#
packages/form-core/src/FormApi.ts:88
onBlurAsync?#
optional onBlurAsync: FormAsyncValidateOrFn<TFormData, TFormValidator>;
Optional onBlur asynchronous validation method for when a field loses focus return a ValidationError or a promise of Promise<ValidationError>
Source#
packages/form-core/src/FormApi.ts:92
onBlurAsyncDebounceMs?#
optional onBlurAsyncDebounceMs: number;
The default time in milliseconds that if set to a number larger than 0, will debounce the async validation event by this length of time in milliseconds.
Source#
packages/form-core/src/FormApi.ts:96
onChange?#
optional onChange: FormValidateOrFn<TFormData, TFormValidator>;
Optional function that checks the validity of your data whenever a value changes
Source#
packages/form-core/src/FormApi.ts:76
onChangeAsync?#
optional onChangeAsync: FormAsyncValidateOrFn<TFormData, TFormValidator>;
Optional onChange asynchronous counterpart to onChange. Useful for more complex validation logic that might involve server requests.
Source#
packages/form-core/src/FormApi.ts:80
onChangeAsyncDebounceMs?#
optional onChangeAsyncDebounceMs: number;
The default time in milliseconds that if set to a number larger than 0, will debounce the async validation event by this length of time in milliseconds.
Source#
packages/form-core/src/FormApi.ts:84
onMount?#
optional onMount: FormValidateOrFn<TFormData, TFormValidator>;
Optional function that fires as soon as the component mounts.
Source#
packages/form-core/src/FormApi.ts:72
onSubmit?#
optional onSubmit: FormValidateOrFn<TFormData, TFormValidator>;
Source#
packages/form-core/src/FormApi.ts:97
onSubmitAsync?#
optional onSubmitAsync: FormAsyncValidateOrFn<TFormData, TFormValidator>;