Files
Basalt2/docs/references/Label.md
2025-02-13 09:51:51 +00:00

36 lines
636 B
Markdown

# Label : VisualElement
## Properties
|Property|Type|Default|Description|
|---|---|---|---|
|text|string|Label|Label text to be displayed
## Functions
|Method|Returns|Description|
|---|---|---|
|[Label.new](#Label.new)|Label|
|[Label:init](#Label:init)|-|
|[Label:render](#Label:render)|-|
## Label.new(name, basalt)
Creates a new Label instance
### Parameters
* `name` `table` The properties to initialize the element with
* `basalt` `table` The basalt instance
### Returns
* `Label` `object` The newly created Label instance
### Usage
```lua
local element = Label.new("myId", basalt)
```
## Label:init()
## Label:render()