Interface ControlApi<ControlTypeAttributes, ControlFieldType>

Extension of ControlApiBase supplied by SAS Visual Investigator to provide more functionality.

interface ControlApi<ControlTypeAttributes, ControlFieldType> {
    component?: any;
    getAriaLabel: (() => string);
    masking: MaskingControlApi;
    state: ControlStateApi;
    type: string;
    getAncestorControl(ofType: string): undefined | Control<TypeAttributes>;
    getControl(): Control<ControlTypeAttributes>;
    getFieldRestrictions(): FieldTypeToRestrictions<ControlFieldType>;
    getFieldValue(): FieldTypeToValue<ControlFieldType>;
    getFileRestrictions(): FileRestrictions;
    getParentControl(): undefined | Control<TypeAttributes>;
    isAuthorizedToUnmask(): boolean;
    isMaskedControl(): boolean;
    setComponentSpecificApi(componentSpecificApi?: any): void;
    setFieldValue(value: FieldTypeToValue<ControlFieldType>): void;
}

Type Parameters

Hierarchy (view full)

Properties

component?: any

Space for component specific API functions.

getAriaLabel: (() => string)

Returns a string that can be used as an aria label for the field, which includes its required state. Uses the typeAttributes.title.text field for the label.

Type declaration

    • (): string
    • Returns string

      The aria label that should be applied.

masking: MaskingControlApi

Access the Control Data Masking API

Methods related to the state of the control.

type: string

Control type.

Methods

  • Returns the parent ancestor with the given type for this control.

    Parameters

    • ofType: string

      {string} Type of ancestor to be returned.

    Returns undefined | Control<TypeAttributes>

    Object representing the calling control's ancestor, or undefined if no match.

  • 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 component specific API.

    Parameters

    • OptionalcomponentSpecificApi: any

    Returns void