textinput.length
description
Limits the maximum number of characters that can be entered in the input box. 0
or lower means no limit (default setting). Note that linebreaks count as characters in the limit (
and ` `).
syntax
getTextInput(ELEMENT_NAME).length(number)
-
number
:
since
beta 0.3example(s)
@newTextInput("haiku", "hatsu shigure\nsaru mo komino o\nhoshige nari")
$ .length(45)
@ .lines(3)
@ .print()
- Adds a 3-line input box limited to 45 characters to the screen, containing a haiku (note the
\n
to insert linebreaks in the text).