RectangularToggleButton¶
Overview¶
RectangularToggleButton is a rectangular toggle button that toggles the value of a Property between 2 values. It has the same look for both values.
@author John Blanco (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)
Class RectangularToggleButton¶
Constructor¶
new RectangularToggleButton( property : Property<T>, valueOff : T, valueOn : T, providedOptions? : RectangularButtonOptions )¶
Instance Methods¶
dispose()¶
Type RectangularToggleButtonOptions¶
- valueOffSoundPlayer?: TSoundPlayer
sounds to be played on toggle transitions - valueOnSoundPlayer?: TSoundPlayer
- & RectangularButtonOptions
Source Code¶
See the source for RectangularToggleButton.ts in the sun repository.