ToggleButtonModel¶
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/buttons/ToggleButtonModel.ts for the most up-to-date information.
Overview¶
Model for a toggle button that changes value on each "up" event when the button is released.
@author Sam Reid (PhET Interactive Simulations) @author John Blanco (PhET Interactive Simulations)
Class ToggleButtonModel¶
Constructor¶
new ToggleButtonModel( valueOff : T, valueOn : T, property : TProperty<T>, providedOptions? : ToggleButtonModelOptions )¶
Instance Methods¶
dispose()¶
Instance Properties¶
valueProperty : TProperty<T>¶
(readonly)
valueOff : T¶
(readonly)
valueOn : T¶
(readonly)
Type ToggleButtonModelOptions¶
Source Code¶
See the source for ToggleButtonModel.ts in the sun repository.