This commit is contained in:
NoryiE
2025-02-20 10:33:41 +00:00
parent 1a555af26c
commit 22c104f7df
5 changed files with 21 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
# Button : VisualElement
This is the button class. It is a visual element that can be clicked.
## Properties
@@ -16,24 +15,14 @@ This is the button class. It is a visual element that can be clicked.
|Method|Returns|Description|
|---|---|---|
|[Button.new](#Button.new)|table|Creates a new Button instance
|[Button:init](#Button:init)|-|Initializes the Button instance
|[Button:render](#Button:render)|-|Renders the Button
|[Button.new](#Button.new)|-|
|[Button:init](#Button:init)|-|
|[Button:render](#Button:render)|-|
## 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:init()
## Button:render()
Renders the Button