deploy: 792832c61d
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# Button : VisualElement
|
||||
This is the button class. It is a visual element that can be clicked.
|
||||
@configDescription Standard button element with click handling and state management
|
||||
|
||||
## Properties
|
||||
|
||||
@@ -15,14 +17,24 @@
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[Button.new](#Button.new)|-|
|
||||
|[Button:init](#Button:init)|-|
|
||||
|[Button:render](#Button:render)|-|
|
||||
|[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()
|
||||
Creates a new Button instance
|
||||
|
||||
## Button:init()
|
||||
### 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:render()
|
||||
Renders the Button
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user