Interface UseCubicWebFormData

Return values for the useCubicWebForm hook.

Hierarchy

  • UseCubicWebFormData

Properties

entityTypeSchema: EntitySchema<EntityRawSchemaArray, RelationDefinitionRawSchemaArray<EntityRawSchemaArray>, EntityRawSchema>

The entity schema of the entity

formMethods: UseFormReturn

Object returned by react-hook-form useForm

loading: boolean

True if the form is loading, false otherwise. The form may load on mount if you provided and eid to fetch the initial values, and when submitting the form.

onSubmit: ((e) => void)

Type declaration

    • (e): void
    • Call this function to trigger the submit operation. Do not use handleSubmit provided by react-hook-form.

      Parameters

      • e: FormEvent<Element>

      Returns void

Generated using TypeDoc