text_input

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.

__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