Returns the value displayed to the user. It's not always the value which was saved.
Therefor use getValue.
// Get display value
ix.api.dom.getControl("<ELEMENT-GUID>").displayValue;
Set value of the control.
Optional
settings: { Optional configuration options for setting the value.
asHtml
: Determines whether the value should be treated as HTML (true
) or plain text (false
).Optional
as// Set value as text
ix.api.dom.getControl("<ELEMENT-GUID>").setValue("INTREXX!");
// Set value as HTML
ix.api.dom.getControl("<ELEMENT-GUID>").setValue("Hey <strong>INTREXX!</strong>", { asHtml: true });
Represents a multiline text view control.
It provides a user-friendly interface for displaying multiline text data. It ensures that the text is formatted correctly for display and is easily readable by the user. This control is ideal for scenarios where users may need to view detailed information, such as comments or descriptions.
Note
This control also serves as a view control, displaying the content from the Content Editor.