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>

获取表单控件的 FRAnnot。

Type declaration

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

      • 表单控件的 FRAnnot。
getFieldType: () => Promise<number>

获取表单控件的字段类型。

Type declaration

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

      • 表单控件的字段类型。
getFormControl: () => Promise<null | FormControlType>

获取表单组件的表单控件。

Type declaration

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

从交互式表单中获取表单控件部件(widget)。

Type declaration

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

重置表单小部件的外观并清除所有缓存的外观。

Type declaration

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

      • value: string

        要设置的值。

      • valueChanged: boolean

        值是否已更改。

      • resetRV: boolean

        是否需要重置 “RV” 字典。

      Returns Promise<void>