Interface UseChangeHandlerReturn<Values, Name>

Type Parameters

  • Values extends BaseValues

  • Name extends ValuesFields<Values>

Hierarchy

Properties

changeValue: ((newValue: DeepIndex<Values, Name>) => void)

Type declaration

    • (newValue: DeepIndex<Values, Name>): void
    • Change the fields value.

      Parameters

      Returns void

handleChangeEvent: DeepIndex<Values, Name> extends string ? ((event: ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>) => void) : never

Handle a change event for a native input. Only supports string values.

Param

handleCheckboxEvent: DeepIndex<Values, Name> extends boolean ? ((event: ChangeEvent<HTMLInputElement>) => void) : never

Handle a change event for a native checkbox. Only supports boolean values.

Param

Generated using TypeDoc