711 B
711 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:init | - | Initializes the Button instance |
| Button:render | - | Renders the Button |
Button.new()
Returns
tableselfThe created instance
Button:init(props, basalt)
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance