Search...
text
Sets or gets the plain-text contents of a text element.
Description
Note: This mobile
text
property only supports plain text and not HTML tags.
Setting the text
property sets the plain-text contents of
the text element. Any text that the element already contained is
replaced. The new text is formatted using the formatting that was used
on of the first character of the previous text
value.
Getting the text
property returns the plain-text content
of the element.
Type:
stringRead & Write, default value is An empty string
Was this helpful?
Get a text element's plain-text content
Copy Code
1let value = $w('#mobileTextElement').text // 'Text Value'
Set a text element's plain-text content
Copy Code
1$w('#mobileTextElement').text = 'Text Value';