interface FormWidgetType {
    getAnnot: () => Promise<null | AnnotType>;
    getFieldType: () => Promise<number>;
    getFormControl: () => Promise<null | FormControlType>;
    getFromInterForm: (
        doc: DocType,
        interForm: InterFormType,
        formControl: FormControlType,
    ) => Promise<null | FormWidgetType>;
    options?: Options;
    resetAppearance: (
        value: string,
        valueChanged: boolean,
        resetRV: boolean,
    ) => Promise<void>;
}

Implemented by

Properties

getAnnot: () => Promise<null | AnnotType>

Gets the FRAnnot of the form widget.

Type declaration

    • (): Promise<null | AnnotType>
    • Returns Promise<null | AnnotType>

      • The FRAnnot of the form widget.
getFieldType: () => Promise<number>

Gets the field type of the form widget.

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      • The field type of the form widget.
getFormControl: () => Promise<null | FormControlType>

Gets the form control of the form widget.

Type declaration

getFromInterForm: (
    doc: DocType,
    interForm: InterFormType,
    formControl: FormControlType,
) => Promise<null | FormWidgetType>

Gets the form widget from the inter form.

Type declaration

options?: Options
resetAppearance: (
    value: string,
    valueChanged: boolean,
    resetRV: boolean,
) => Promise<void>

Resets the appearance of the form widget and clears all cached appearances.

Type declaration

    • (value: string, valueChanged: boolean, resetRV: boolean): Promise<void>
    • Parameters

      • value: string

        The value to set.

      • valueChanged: boolean

        If the value changed.

      • resetRV: boolean

        If need to reset “RV” dictionary.

      Returns Promise<void>