getTextInput(id).settings.text("string")
(since beta 0.3)
(Re)sets the text in the input box.
[js highlight=”11″ try=”true”]newTextInput(“poem”, “”)
.settings.before( newText(“flowers”, “Violets are blue, roses are red, “) )
.print()
,
newButton(“validate”, “Validate”)
.print()
.wait()
.remove()
,
getTextInput(“poem”)
.settings.disable()
.settings.text(“DISABLED”)[/js]
Adds a one-line input box to the screen preceded with Violets are blue, roses are red, on its left, and a button reading Validate. The input box can no longer be edited after a click, and its text is replaced with “DISABLED”.