Interface UseFormHandlerStatelessArg<Values>

Type Parameters

  • Values extends BaseValues

Hierarchy

Properties

disabledWhileSubmitting?: boolean
errors: Partial<Record<DeepKeys<Values>, string>>
initialValues: Values
isSubmitting: boolean
onErrors: ((newErrors: Partial<Record<DeepKeys<Values>, string>>) => void)

Type declaration

    • (newErrors: Partial<Record<DeepKeys<Values>, string>>): void
    • Parameters

      • newErrors: Partial<Record<DeepKeys<Values>, string>>

      Returns void

onIsSubmitting: ((nextIsSubmitting: boolean) => void)

Type declaration

    • (nextIsSubmitting: boolean): void
    • Parameters

      • nextIsSubmitting: boolean

      Returns void

onSubmit: ((values: Values) => void)

Type declaration

    • (values: Values): void
    • Parameters

      • values: Values

      Returns void

onTouched: ((touched: FormTouched<Values>) => void)

Type declaration

onValues: ((newValue: Values) => void)

Type declaration

    • (newValue: Values): void
    • Parameters

      • newValue: Values

      Returns void

touchOnBlur?: boolean
touchOnChange?: boolean
touchOnFocus?: boolean
touched: FormTouched<Values>
validate?: ((values: Values, fieldName?: DeepKeys<Values>) => Promise<Partial<Record<DeepKeys<Values>, string>>>)

Type declaration

    • (values: Values, fieldName?: DeepKeys<Values>): Promise<Partial<Record<DeepKeys<Values>, string>>>
    • Parameters

      • values: Values
      • Optional fieldName: DeepKeys<Values>

      Returns Promise<Partial<Record<DeepKeys<Values>, string>>>

validateOnBlur?: boolean
validateOnChange?: boolean
validateOnFocus?: boolean
validateOnMount?: boolean
validateOnSubmit?: boolean
values: Values

Generated using TypeDoc