Files
Basalt2/docs/references/Label.md
2025-02-13 09:51:51 +00:00

636 B

Label : VisualElement

Properties

Property Type Default Description
text string Label Label text to be displayed

Functions

Method Returns Description
Label.new Label
Label:init -
Label:render -

Label.new(name, basalt)

Creates a new Label instance

Parameters

  • name table The properties to initialize the element with
  • basalt table The basalt instance

Returns

  • Label object The newly created Label instance

Usage

local element = Label.new("myId", basalt)

Label:init()

Label:render()