Search
Preparing search index...
The search index is not available
API Reference - Synesthesia Project Light Desk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference - Synesthesia Project Light Desk
components/switch
Switch
Class Switch
A component that allows you to switch between an "on" and "off" state.
Hierarchy
Component
Switch
Index
Constructors
constructor
Methods
add
Listener
set
Value
Constructors
constructor
new
Switch
(
state
:
"on"
|
"off"
)
:
Switch
Parameters
state:
"on"
|
"off"
Returns
Switch
Methods
add
Listener
add
Listener
(
listener
:
Listener
)
:
Switch
Parameters
listener:
Listener
Returns
Switch
set
Value
set
Value
(
state
:
"on"
|
"off"
)
:
void
Parameters
state:
"on"
|
"off"
Returns
void
Modules
components/base
components/button
components/group
components/label
components/rect
components/slider_
button
components/switch
index
options
server
types/styles
util/color
util/id-
map
Switch
constructor
add
Listener
set
Value
Generated using
TypeDoc
A component that allows you to switch between an "on" and "off" state.