636 B
636 B
Label : VisualElement
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| text | string | Label | Label text to be displayed |
Functions
| Method | Returns | Description |
|---|---|---|
| Label.new | Label | |
| Label:init | - | |
| Label:render | - |
Label.new(name, basalt)
Creates a new Label instance
Parameters
nametableThe properties to initialize the element withbasalttableThe basalt instance
Returns
LabelobjectThe newly created Label instance
Usage
local element = Label.new("myId", basalt)