deploy: db22ae0ba3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user