Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 747 Bytes

Switch.md

File metadata and controls

23 lines (17 loc) · 747 Bytes

Switch ⇐ React.omponent

Kind: global class
Extends: React.omponent
Export: Switch

new Switch(name, on, off, onChange, units)

Component thatdisplays a toggle switch to toggle between two values

PROPERTIES

Param Type Description
name string name of switch to use for binding together the input and the label
on string text of the switch when in on position
off string text of the switch when in off position
onChange function function to call when the switch changes
units Object temperature units object