717 B
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
tableselfThe created instance
Button:Button(props, basalt)
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance