This type represents a text input control.
This type inherits control type. All of its base methods and fields are also available in this type.
control
Constructor
Constructs the text input.
Arguments
Name
Type
Description
id
control_id
ID.
Returns
text_input
Text input instance.
Example
local sp = gui.text_input(gui.control_id('my_id'));
Field
Type: string
string
Placeholder text.
FieldRead only
Value.
Method
Sets the new text.
str
New value.
Nothing.
Last updated 1 year ago
input:set_value('Hello!');