textInput(hasFocus?: boolean, maxInputLength?: number): TextInputComp
Get input from the user and store it in the nodes text property, displaying it with the text component and allowing other functions to access it.
param
hasFocus- Whether the text input should have focus.
param
maxInputLength- The maximum length of the input.
const obj = add([ text(""), textInput(), ]) obj.hasFocus = false debug.log(obj.text) // oh no i cant see my new text since it was disabled
returns
The text input comp.
since
v3001.0