Button

This type represents a button 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 button.

Arguments

Name

Type

Description

id

ControlID|string

Control ID.

str

string

Text string.

Returns

Type

Description

Button

Button object.

Example

local btn = gui.Button(id, 'Hello!');

text

Field

Type: string

Last updated