Search.../

wrap

Determines if the text contains line breaks when its value is read.

Description

Setting the wrap property sets how the text box's contents are returned when its value is read. Setting wrap to "hard" means line breaks are automatically inserted into the text. The width of the text box determines where the line breaks are placed. Setting wrap to "soft" means line breaks are not inserted when the value of the text box is read.

Getting the wrap property gets how the text box's contents are returned when its value is read.

Type:

stringRead & Write, default value is "soft"

Was this helpful?

Get a text box's wrapping

Copy Code
1let wrapping = $w("#textBox").wrap // "soft"
Set a text box's wrapping

Copy Code
1$w("#textBox").wrap = "hard";