Represents a view control for displaying phone values.

It provides a user-friendly interface for displaying phone numbers. The displayed phone number is presented as a clickable link that can be used to initiate a phone call or send an SMS message when clicked on a device that supports these protocols.

Hierarchy

  • UpTextVMainControl
    • Phone

Accessors

Methods

Accessors

  • get displayValue(): string
  • Returns the value displayed to the user. It's not always the value which was saved.

    Therefor use getValue.

    Returns string

    Example

    // Get display value
    ix.api.dom.getControl("<ELEMENT-GUID>").displayValue;

Methods

  • Retrieve the current value of the control.

    Returns string

    Example

    // Get value of control
    ix.api.dom.getControl("<ELEMENT-GUID>").getValue();
  • Set value of the control. No validation or formation done!

    Parameters

    • value: string
    • Optional settings: {
          asHtml?: boolean;
      }
      • Optional asHtml?: boolean

    Returns void

    Example

    // Set value for text controls
    ix.api.dom.getControl("<ELEMENT-GUID>").setValue("INTREXX!");