textinput.once
description
Disables the input box after the key enter/return has been pressed for the first time while editing.
syntax
getTextInput(ELEMENT_NAME).once()
notes
- Adds a one-line input box to the screen preceded with Violets are blue, roses are red, on its left and waits for a press on the enter/return key, after what the text can no longer be edited.
example(s)
@newTextInput("poem", "")
@ .before( newText("flowers", "Violets are blue, roses are red, ") )
$ .once()
@ .print()
@ .wait()
- Adds a one-line input box to the screen preceded with Violets are blue, roses are red, on its left and waits for a press on the enter/return key, after what the text can no longer be edited.