Description

Represents a form field where users can enter values.

Hierarchy

  • FormField

Properties

fieldKey: string

Deprecated

Use FormField.key instead.

The input type of the form field.

key: string

The key of the form field.

placeholder?: string

The placeholder of this form field when the input value is empty.

regex?: string

The regular expression of this form field to validate the input value.

required: boolean

Whether this form field is required or not.

temporaryAnswer?: string

The temporary answer to this form field to store the input value before submitting. It becomes null when it is submitted.

title: string

The title of the form field.

Accessors

  • get isSubmittable(): boolean
  • Whether this form field is submittable or not.

    Returns boolean

Methods

  • Parameters

    • value: string

    Returns boolean

    Description

    Whether the given string is valid or not. If the regex is null or not a regular expression, it always returns true.

Generated using TypeDoc