Files
Basalt2/docs/references/elements/Button.md
2025-02-16 19:31:38 +00:00

681 B

Button : VisualElement

Properties

Property Type Default Description
text string Button Button text

Functions

Method Returns Description
Button.new table
Button:init -
Button:render -

@event mouse_click The event that is triggered when the button is clicked

Button.new()

Creates a new Button instance

Returns

  • table self The created instance

Button:init(props, basalt)

Initializes the Button instance

Parameters

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

Button:render()

Renders the Button