Files
Basalt2/docs/references/elements/Button.md
Robert Jelic 3504d8a3aa Docs fix
2025-09-13 12:50:01 +02:00

717 B

Button

The Button is a standard button element with click handling and state management.

Extends: VisualElement

Properties

Property Type Default Description
text string Button Button text

Functions

Method Returns Description
Button.new table Creates a new Button instance
Button:Button - Initializes the Button instance
Button:Button - Renders the Button

Button.new()

Returns

  • table self The created instance

Button:Button(props, basalt)

Parameters

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

Button:Button()