38 lines
664 B
Markdown
38 lines
664 B
Markdown
# Button : VisualElement
|
|
|
|
## Properties
|
|
|
|
|Property|Type|Default|Description|
|
|
|---|---|---|---|
|
|
|text|string|Button|Button text
|
|
|
|
## Events
|
|
|
|
|Event|Parameters|Description|
|
|
|---|---|---|
|
|
|
|
## Functions
|
|
|
|
|Method|Returns|Description|
|
|
|---|---|---|
|
|
|[Button.new](#Button.new)|table|
|
|
|[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:render()
|
|
Renders the Button
|
|
|