Preparing search index...
The search index is not available
DCSOlympus
DCSOlympus
controls/switch
Switch
Class Switch
Hierarchy
Control
Switch
Index
Constructors
constructor
Properties
#callback
#container
#value
expected
Value
Methods
#on
Toggle
check
Expected
Value
create
Element
get
Container
get
Value
hide
reset
Expected
Value
set
Expected
Value
set
Value
show
Constructors
constructor
new
Switch
(
ID
,
callback
,
initialValue
?
)
:
Switch
Parameters
ID
:
string
callback
:
CallableFunction
Optional
initialValue
:
boolean
Optional
Returns
Switch
Properties
Private
#callback
#callback
:
null
|
CallableFunction
= null
Private
#container
#container
:
null
|
HTMLElement
Private
#value
#value
:
undefined
|
boolean
= false
expected
Value
expected
Value
:
any
= null
Methods
Private
#on
Toggle
#on
Toggle
(
)
:
void
Returns
void
check
Expected
Value
check
Expected
Value
(
value
)
:
boolean
Parameters
value
:
any
Returns
boolean
create
Element
create
Element
(
options
?
)
:
null
|
HTMLElement
Parameters
Optional
options
:
any
Optional
Returns
null
|
HTMLElement
get
Container
get
Container
(
)
:
null
|
HTMLElement
Returns
null
|
HTMLElement
get
Value
get
Value
(
)
:
undefined
|
boolean
Returns
undefined
|
boolean
hide
hide
(
)
:
void
Returns
void
reset
Expected
Value
reset
Expected
Value
(
)
:
void
Returns
void
set
Expected
Value
set
Expected
Value
(
expectedValue
)
:
void
Parameters
expectedValue
:
any
Returns
void
set
Value
set
Value
(
newValue
,
ignoreExpectedValue
?
)
:
void
Parameters
newValue
:
undefined
|
boolean
ignoreExpectedValue
:
boolean
= true
Returns
void
show
show
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#callback
#container
#value
expected
Value
#on
Toggle
check
Expected
Value
create
Element
get
Container
get
Value
hide
reset
Expected
Value
set
Expected
Value
set
Value
show
DCSOlympus
contextmenus/airbasecontextmenu
contextmenus/airbasespawnmenu
contextmenus/coalitionareacontextmenu
contextmenus/contextmenu
contextmenus/mapcontextmenu
contextmenus/unitcontextmenu
controls/control
controls/dropdown
controls/slider
controls/switch
Switch
controls/unitspawnmenu
index
map/boxselect
map/clickableminimap
map/coalitionarea
map/coalitionareahandle
map/coalitionareamiddlehandle
map/custommarker
map/destinationpreviewmarker
map/drawingcursor
map/map
map/smokemarker
map/targetmarker
map/temporaryunitmarker
mission/airbase
mission/bullseye
mission/missionhandler
other/utils
panels/connectionstatuspanel
panels/hotgrouppanel
panels/logpanel
panels/mouseinfopanel
panels/panel
panels/serverstatuspanel
panels/unitcontrolpanel
panels/unitinfopanel
popups/popup
server/dataextractor
server/server
unit/aircraftdatabase
unit/cities
Database
unit/groundunitdatabase
unit/helicopterdatabase
unit/navyunitdatabase
unit/unit
unit/unitdatabase
unit/unitsmanager
weapon/weapon
weapon/weaponsmanager
Generated using
TypeDoc