TextInput

This type represents a text input control.

circle-info

This type inherits Control type. All of its base methods and fields are also available in this type.

__call

Constructor

Constructs the text input.

Arguments

Name

Type

Description

id

ControlID|string

ID.

Returns

Type

Description

TextInput

Text input instance.

Example

local sp = gui.text_input(id);

placeholder

Field

Type: string

Placeholder text.


value

FieldRead only

Type: string

Value.


SetValue

Method

Sets the new text.

Arguments

Name

Type

Description

str

string

New value.

Returns

Nothing.

Example

Last updated