This commit is contained in:
NoryiE
2025-02-13 09:51:51 +00:00
parent 7dff4d2f1e
commit 346ded1c89
19 changed files with 336 additions and 35 deletions

35
docs/references/Label.md Normal file
View File

@@ -0,0 +1,35 @@
# 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()