Implements

Constructors

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

    Parameters

    Returns FormControl

    const FormControl = await FormControl.create();
    

Properties

options: Options

Methods

  • Gets the border color of the form control.

    Returns Promise<number[]>

    • The background color of the form control
  • Gets the border color of the form control.

    Returns Promise<number[]>

    • The border color of the form control
  • Gets the rectangle of the form control.

    Returns Promise<Rect>

    • The rectangle of the form control
  • Gets the rotation of the form control.

    Returns Promise<number>

    • The rotation of the form control
  • Gets the field type of the form control.

    Returns Promise<FPD_FormFieldType>

    • The field type of the form control.
  • Gets the value of the form control.

    Returns Promise<boolean>

    • Whether the form control is checked
  • Gets the default checked state of the form control.

    Returns Promise<boolean>

    • Whether the form control is default checked
  • Sets the border color of the form control.

    Parameters

    • color: { color: number[] }

      The background color to set.

    Returns Promise<void>

  • Sets the border color of the form control.

    Parameters

    • color: { color: number[] }

      The color to set.

    Returns Promise<void>

  • Sets the rotation of the form control.

    Parameters

    • deg: number

      The degree to set.

    Returns Promise<void>

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

    Parameters

    Returns Promise<FormControlType>

    Create a FormControl instance

    const formControl = await FormControl.create();