Interface ControlApiBase<ControlTypeAttributes, ControlFieldType>

This Control API pertains to functionality that checks the state, registers event handlers, and so on.

interface ControlApiBase<ControlTypeAttributes, ControlFieldType> {
    masking: MaskingControlApi;
    state: ControlStateApi;
    type: string;
    getControl(): Control<ControlTypeAttributes>;
    getFieldRestrictions(): FieldTypeToRestrictions<ControlFieldType>;
    getFieldValue(): FieldTypeToValue<ControlFieldType>;
    getFileRestrictions(): FileRestrictions;
    isAuthorizedToUnmask(): boolean;
    isMaskedControl(): boolean;
    setFieldValue(value: FieldTypeToValue<ControlFieldType>): void;
}

Type Parameters

Hierarchy (view full)

Properties

masking: MaskingControlApi

Access the Control Data Masking API

Methods related to the state of the control.

type: string

Control type.

Methods

  • Returns the restrictions of the control's file category. File category must be configured as fileCategory in the control's typeAttributes.

    Returns FileRestrictions

    The file restrictions that should be applied.

  • Control Mask Authorization

    Returns boolean

    use api.control.masking.isAuthorizedToUnmask

  • Control Mask

    Returns boolean

    use api.control.masking.isConfiguredForMasking instead.

  • Sets the value of the control's field. Field must be configured as dataSource in the control's typeAttributes.

    Parameters

    Returns void