OnOffSwitch¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/sun/blob/main/js/OnOffSwitch.ts for the most up-to-date information.
Overview¶
OnOffSwitch is a switch for toggling between true (on) and false (off). The off position is on the left, the on position is on the right.
@author Chris Malley (PixelZoom, Inc.)
Class OnOffSwitch¶
Constructor¶
new OnOffSwitch( property : Property<boolean>, providedOptions : OnOffSwitchOptions )¶
Instance Methods¶
Type OnOffSwitchOptions¶
Source Code¶
See the source for OnOffSwitch.ts in the sun repository.