label
This type represents a label control.
This type inherits control
type. All of its base methods and fields are also available in this type.
__call
Constructs the label.
Arguments
Name
Type
Description
id
Control ID.
str
string
Label string.
col
Label color. Defaults to nil
.
bold
bool
Whether to use bold font. Defaults to false
.
Returns
Type
Description
label
Label object.
Example
set_text
Sets the new text.
Arguments
Name
Type
Description
str
string
New text.
Returns
Nothing.
Example
Last updated