API Reference
- JavaScript Reference
- Classes / FieldApi
- Classes / FormApi
- Functions / formOptions
- Functions / mergeForm
- Interfaces / FieldApiOptions
- Interfaces / FieldOptions
- Interfaces / FieldValidators
- Interfaces / FormOptions
- Interfaces / FormValidators
- Types / DeepKeys
- Types / DeepValue
- Types / AnyFieldMeta
- Types / BaseFormState
- Types / DerivedFormState
- Types / Updater
- Types / UpdaterFn
- Types / ValidationError
- Types / ValidationMeta
- React Reference
- Variables / Field
- Functions / useField
- Functions / useForm
- Types / FieldComponent
- Types / UseField
FormValidators
Defined in: packages/form-core/src/FormApi.ts:185
Type Parameters#
TFormData#
TFormData
TOnMount#
TOnMount extends undefined | FormValidateOrFn<TFormData>
TOnChange#
TOnChange extends undefined | FormValidateOrFn<TFormData>
TOnChangeAsync#
TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnBlur#
TOnBlur extends undefined | FormValidateOrFn<TFormData>
TOnBlurAsync#
TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnSubmit#
TOnSubmit extends undefined | FormValidateOrFn<TFormData>
TOnSubmitAsync#
TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnDynamic#
TOnDynamic extends undefined | FormValidateOrFn<TFormData>
TOnDynamicAsync#
TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>
Properties#
onBlur?#
optional onBlur: RejectPromiseValidator<TOnBlur>;Defined in: packages/form-core/src/FormApi.ts:216
Optional function that validates the form data when a field loses focus, returns a FormValidationError
onBlurAsync?#
optional onBlurAsync: TOnBlurAsync;Defined in: packages/form-core/src/FormApi.ts:220
Optional onBlur asynchronous validation method for when a field loses focus returns a FormValidationError or a promise of Promise<FormValidationError>
onBlurAsyncDebounceMs?#
optional onBlurAsyncDebounceMs: number;Defined in: packages/form-core/src/FormApi.ts:224
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.
onChange?#
optional onChange: RejectPromiseValidator<TOnChange>;Defined in: packages/form-core/src/FormApi.ts:204
Optional function that checks the validity of your data whenever a value changes
onChangeAsync?#
optional onChangeAsync: TOnChangeAsync;Defined in: packages/form-core/src/FormApi.ts:208
Optional onChange asynchronous counterpart to onChange. Useful for more complex validation logic that might involve server requests.
onChangeAsyncDebounceMs?#
optional onChangeAsyncDebounceMs: number;Defined in: packages/form-core/src/FormApi.ts:212
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.
onDynamic?#
optional onDynamic: RejectPromiseValidator<TOnDynamic>;Defined in: packages/form-core/src/FormApi.ts:227
onDynamicAsync?#
optional onDynamicAsync: TOnDynamicAsync;Defined in: packages/form-core/src/FormApi.ts:228
onDynamicAsyncDebounceMs?#
optional onDynamicAsyncDebounceMs: number;Defined in: packages/form-core/src/FormApi.ts:229
onMount?#
optional onMount: RejectPromiseValidator<TOnMount>;Defined in: packages/form-core/src/FormApi.ts:200
Optional function that fires as soon as the component mounts.
onSubmit?#
optional onSubmit: RejectPromiseValidator<TOnSubmit>;Defined in: packages/form-core/src/FormApi.ts:225
onSubmitAsync?#
optional onSubmitAsync: TOnSubmitAsync;Defined in: packages/form-core/src/FormApi.ts:226