import{_ as t,a,b as r,ag as l}from"./chunks/framework.BcrMLAmg.js";const c=JSON.parse('{"title":"Label","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Label.md","filePath":"references/elements/Label.md","lastUpdated":1757844696000}'),d={name:"references/elements/Label.md"};function o(n,e,s,i,h,p){return r(),a("div",null,e[0]||(e[0]=[l('
This is the label class. It provides a simple text display element that automaticallyresizes its width based on the text content.
Extends: VisualElement
| 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 |
| Method | Returns | Description |
|---|---|---|
| Label:getWrappedText | table | Gets the wrapped lines of the Label |
Gets the wrapped lines of the Label
table wrappedText The wrapped lines of the Label