909 B
909 B
Button : VisualElement
The Button is a standard button element with click handling and state management. @configDescription Standard button element with click handling and state management
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| text | string | Button | Button text |
Events
| Event | Parameters | Description |
|---|
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()
Creates a new Button instance
Returns
tableselfThe created instance
Button:init(props, basalt)
Initializes the Button instance
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance
Button:render()
Renders the Button