The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

textinput.text

description

(Re)sets the text in the input box.

syntax

getTextInput(ELEMENT_NAME).text(string)
  • string :

notes

  • 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”.

since

beta 0.3

example(s)


@newTextInput("poem", "")
@    .before( newText("flowers", "Violets are blue, roses are red, ") )
@    .print()
@,
@newButton("validate", "Validate")
@    .print()
@    .wait()
@    .remove()
@,
@getTextInput("poem")
@    .disable()
$    .text("DISABLED")
  • 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”.