MomentaryButtonModel¶
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/MomentaryButtonModel.ts for the most up-to-date information.
Overview¶
Model for a momentary button: on when pressed, off when released.
@author Chris Malley (PixelZoom, Inc.)
Class MomentaryButtonModel¶
Constructor¶
new MomentaryButtonModel( valueOff : T, valueOn : T, valueProperty : TProperty<T>, providedOptions? : MomentaryButtonModelOptions )¶
Instance Methods¶
dispose()¶
Instance Properties¶
valueOn : T¶
(readonly)
Type MomentaryButtonModelOptions¶
Source Code¶
See the source for MomentaryButtonModel.ts in the sun repository.