728 B
728 B
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 |
Functions
| Method | Returns | Description |
|---|---|---|
| Switch.new | table | Creates a new Switch instance |
| Switch:Switch | - | Initializes the Switch instance |
| Switch:Switch | - | Renders the Switch |
Switch.new()
Returns
tableselfThe created instance
Switch:Switch(props, basalt)
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance