Search.../

text

Sets or gets the plain-text content of a collapsible text element.

Description

Setting the text property sets the plain-text content of the collapsible text. Any existing text in the element is replaced. The new text uses the same formatting as the previous text value.

Getting the text property gets the plain-text content of the collapsible text element.

Type:

stringRead & Write

Was this helpful?

Get a collapsible text element's plain-text content

Copy Code
1const myTextValue = $w('#myCollapsibleText').text // 'Text Value'
Set a collapsible text element's plain-text content

Copy Code
1$w('#myCollapsibleText').text = 'Text Value';