Interface UseCubicWebFormQueryParams<E, EntityType>

Parameters to describe how to build queries to the API when handling forms.

Type Parameters

  • E extends EntityRawSchemaArray

  • EntityType extends E[number]["type"]

Hierarchy

  • UseCubicWebFormQueryParams

Properties

eid?: number

The eid of the entity you want to edit. If provided, the hook will fetch the initial values.

includeObjectRelations?: boolean

True if you want to include object relations. Defaults to false.

omittedFields?: string[]

Which attributes/relations you want to ignore while editting the entity.

onSuccess?: ((eid) => void)

Type declaration

    • (eid): void
    • Handler to execute when the form successfully submits

      Parameters

      • eid: number

      Returns void

type: EntityType

The entity type you want to edit. Allows the lib to know which entity schema to return.

Generated using TypeDoc