text_input
This type represents a text input control.
__call
Constructs the text input.
Arguments
Name
Type
Description
Returns
Type
Description
text_input
Text input instance.
Example
local sp = gui.text_input(gui.control_id('my_id'));
placeholder
Type: string
Placeholder text.
value
Type: string
Value.
set_value
Sets the new text.
Arguments
Name
Type
Description
str
string
New value.
Returns
Nothing.
Example
input:set_value('Hello!');
Last updated