Skip to content

Label

This is the label class. It provides a simple text display element that automaticallyresizes its width based on the text content.

Extends: VisualElement

Properties

PropertyTypeDefaultDescription
textstringLabelThe text content to display. Can be a string or a function that returns a string
autoSizebooleantrueWhether the label should automatically resize its width based on the text content

Functions

MethodReturnsDescription
Label:getWrappedTexttableGets the wrapped lines of the Label

Label:getWrappedText()

Gets the wrapped lines of the Label

Returns

  • table wrappedText The wrapped lines of the Label

Released under the MIT License.