This commit is contained in:
Robert Jelic
2025-09-13 12:54:15 +02:00
42 changed files with 1582 additions and 2507 deletions

View File

@@ -1,29 +1,18 @@
# Switch
_The Switch is a standard Switch element with click handling and state management._
Extends: `VisualElement`
# Switch : VisualElement
The Switch is a standard Switch element with click handling and state management.
## Properties
|Property|Type|Default|Description|
|---|---|---|---|
|checked|boolean|Whether|switch is checked|
|checked|boolean|Whether|switch is checked
## Functions
## Protected Functions
|Method|Returns|Description|
|---|---|---|
|[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:init|-|Initializes the Switch instance
|Switch:render|-|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()