Files
Basalt2/docs/references/elements/Label.md
2025-09-14 10:11:36 +00:00

726 B

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

  • table wrappedText The wrapped lines of the Label