This commit is contained in:
NoryiE
2025-02-20 10:33:41 +00:00
parent 1a555af26c
commit 22c104f7df
5 changed files with 21 additions and 17 deletions

View File

@@ -7,12 +7,14 @@ resizes its width based on the text content.
|Property|Type|Default|Description|
|---|---|---|---|
|text|string|Label|The text content to display. Can be a string or a function that returns a string
|autoSize|boolean|true|Whether the label should automatically resize its width based on the text content
## Functions
|Method|Returns|Description|
|---|---|---|
|[Label.new](#Label.new)|Label|Creates a new Label instance
|[Label:getWrappedText](#Label:getWrappedText)|table|Gets the wrapped lines of the Label
|[Label:init](#Label:init)|Label|Initializes the Label instance
|[Label:render](#Label:render)|-|Renders the Label by drawing its text content
@@ -27,6 +29,12 @@ Creates a new Label instance
local label = Label.new()
```
## Label:getWrappedText()
Gets the wrapped lines of the Label
### Returns
* `table` `wrappedText` The wrapped lines of the Label
## Label:init(props, basalt)
Initializes the Label instance