Label
This is the label class. It provides a simple text display element that automatically resizes its width based on the text content.
Extends: VisualElement
Properties
| 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:getWrappedText | table | Gets the wrapped lines of the Label |
Label:getWrappedText()
Gets the wrapped lines of the Label
Returns
tablewrappedTextThe wrapped lines of the Label