Implements

Constructors

  • No longer use 'new' to create, but use create instead.

    Parameters

    Returns FormField

    const formField = await FormField.create();
    

Properties

options: Options

Methods

  • Checks the state of a control in the form field.

    Parameters

    • controlIndex: number

      The index of the control to check.

    • checked: boolean

      Whether the control should be checked or not.

    • notify: boolean

      Whether to notify changes.

    Returns Promise<boolean>

    • Returns true if the control state was successfully checked, otherwise false.
  • get alternate name

    Returns Promise<string>

    • Returns the alternate name of the form field
  • get controls count

    Returns Promise<number>

    • Returns the count of controls
  • get field flags

    Returns Promise<number>

    • Returns the field flags as a number
  • get field type

    Returns Promise<number>

    • Returns the field type as a number
  • get full name

    Returns Promise<string>

    • Returns the full name of the form field
  • Gets the count of options in the form field.

    Returns Promise<number>

    • Returns the count of options in the form field.
  • Inserts an option into the form field at a specified index.

    Parameters

    • optLabel: string

      The label of the option to insert.

    • index: number

      The index at which to insert the option.

    • notify: boolean

      Whether to notify changes.

    Returns Promise<number>

    • Returns the index of the inserted option.
  • set alternate name

    Parameters

    • name: string

      The alternate name to set for the form field

    Returns Promise<void>

    • No return value
  • set field flags

    Parameters

    • flags: number

      The flags to set for the form field

    Returns Promise<void>

    • No return value
  • Sets the value of an option at a specified index in the form field.

    Parameters

    • index: number

      The index of the option to set.

    • optValue: string

      The value to set for the option.

    • notify: boolean

      Whether to notify changes.

    Returns Promise<boolean>

    • Returns true if the option value was set successfully, otherwise false.
  • set field value

    Parameters

    • value: string

      The value to set for the form field

    • notify: boolean

      Whether to notify changes

    Returns Promise<boolean>

    • Returns true if the value was set successfully, otherwise false
  • No longer use 'new' to create, but use create instead.

    Parameters

    Returns Promise<FormFieldType>

    Create a FormField instance

    const formField = await FormField.create();