Retrieves the current text content of the associated HTML element.
The current text content of the associated HTML element, or an empty string if no text is present.
// Get the control by its element GUID and retrieve the text content
const textContent = ix.api.dom.getControl("<ELEMENT-GUID>").getValue();
console.log(textContent); // Outputs the text content to the console
Sets the text content of the associated HTML element.
This method allows you to programmatically set the text content of the HTML element associated with the control. It replaces any existing text within the element.
The text content to set.
The value set by this method is temporary and will not persist across sessions. It will be lost once the user refreshes the page or navigates away from the current page. This feature is useful when you need to temporarily modify a value within a view control for display purposes only, such as masking an email address.
// Get the control by its element GUID and obscure the email address "sample@intrexx.com"
ix.api.dom.getControl("<ELEMENT-GUID>").setValue("s****e@intrexx.com");
Represents a view control for email addresses.
This control is used to display email addresses in a user-friendly manner.