Formwright
    Preparing search index...

    A form. Use it directly (new FormHarness('signup')) or subclass it and declare the form's fields with @field and nested forms with @form.

    Index
    formName: string | undefined

    The form's @name. Not name, so a form can have a field called name.

    formName?: string

    The @name of the form this class describes; the constructor argument wins.

    • get element(): Element

      The

      (or nested
      ), looked up on every read.

      Returns Element

    • get errors(): string[]

      Form-level errors rendered by <f.Errors />.

      Returns string[]

    • get isDirty(): boolean

      Returns boolean

    • get isSubmitting(): boolean

      Returns boolean

    • get status(): "clean" | "dirty" | "invalid" | "submitting"

      The form's state: clean, dirty, invalid or submitting. A nested form has its own.

      Returns "clean" | "dirty" | "invalid" | "submitting"

    • Returns Promise<void>

    • Clicks the form's submit button if it has one, otherwise submits the .

      Returns Promise<void>