This commit is contained in:
NoryiE
2025-09-13 20:28:52 +00:00
parent 9e1112f3bd
commit 4ccefcac9f
48 changed files with 3036 additions and 1565 deletions

View File

@@ -1,18 +1,29 @@
# Button : VisualElement
The Button is a standard button element with click handling and state management.
# 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
|text|string|Button|Button text|
## Protected Functions
## Functions
|Method|Returns|Description|
|---|---|---|
|Button:init|-|Initializes the Button instance
|Button:render|-|Renders the Button
|[Button.new](#button-new)|table|Creates a new Button instance|
|[Button:init](#button-init-props-basalt)|-|Initializes the Button instance|
|[Button:render](#button-render)|-|Renders the Button|
## Button.new()
### Returns
* `table` `self` The created instance
## Button:init(props, basalt)
### Parameters
* `props` `table` The properties to initialize the element with
* `basalt` `table` The basalt instance
## Button:render()