Type alias FormtsOptions<Values, Err>

FormtsOptions<Values, Err>: {
    Schema: FormSchema<Values, Err>;
    initialValues?: InitialValues<Values>;
    validator?: FormValidator<Values, Err>;
}

Type Parameters

  • Values extends object

  • Err

Type declaration

  • Schema: FormSchema<Values, Err>

    Definition of form fields created using FormSchemaBuilder.

  • Optional initialValues?: InitialValues<Values>

    Values used to override the defaults when filling the form after the component is mounted or after form reset (optional). The defaults depend on field type (defined in the Schema). Snapshot of the initialValues will be taken when mounting the component and further changes to it will be ignored. If you want to change initialValues use FormHandle.reset method.

  • Optional validator?: FormValidator<Values, Err>

    Form validator created using FormValidatorBuilder (optional).

Generated using TypeDoc