Docs fix
This commit is contained in:
@@ -1,18 +1,29 @@
|
||||
# Switch : VisualElement
|
||||
The Switch is a standard Switch element with click handling and state management.
|
||||
# Switch
|
||||
_The Switch is a standard Switch element with click handling and state management._
|
||||
|
||||
Extends: `VisualElement`
|
||||
|
||||
## Properties
|
||||
|
||||
|Property|Type|Default|Description|
|
||||
|---|---|---|---|
|
||||
|checked|boolean|Whether|switch is checked
|
||||
|checked|boolean|Whether|switch is checked|
|
||||
|
||||
|
||||
## Protected Functions
|
||||
## Functions
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|Switch:init|-|Initializes the Switch instance
|
||||
|Switch:render|-|Renders the Switch
|
||||
|[Switch.new](#switch-new)|table|Creates a new Switch instance|
|
||||
|[Switch:Switch](#switch-switch-props-basalt)|-|Initializes the Switch instance|
|
||||
|[Switch:Switch](#switch-switch)|-|Renders the Switch|
|
||||
|
||||
## Switch.new()
|
||||
### Returns
|
||||
* `table` `self` The created instance
|
||||
|
||||
## Switch:Switch(props, basalt)
|
||||
### Parameters
|
||||
* `props` `table` The properties to initialize the element with
|
||||
* `basalt` `table` The basalt instance
|
||||
|
||||
## Switch:Switch()
|
||||
Reference in New Issue
Block a user