container

This type represents an abstract container.

add

Method

Adds a control to the container.

Arguments

Name

Type

Description

ctrl

Control to add.

Returns

Nothing.

Example

container:add(my_control);

remove

Method

Removes a control from the container.

Arguments

Name

Type

Description

ctrl

Control to remove.

Returns

Nothing.

Example


find

Method

Finds a control by ID.

Arguments

Name

Type

Description

id

string

Control ID.

Returns

Type

Description

<control>?

Casted control. Returns nil if the control was not found, or casting failed.

Example

Last updated