BooleanRectangularStickyToggleButton¶
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/BooleanRectangularStickyToggleButton.ts for the most up-to-date information.
Overview¶
A rectangular toggle button that switches the value of a boolean Property. It sticks in the down position when pressed, popping back up when pressed again.
This class inherits from the more general RectangularStickyToggleButton, which can take any values.
@author John Blanco (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)
Class BooleanRectangularStickyToggleButton¶
Constructor¶
new BooleanRectangularStickyToggleButton( booleanProperty : TProperty<boolean>, providedOptions? : BooleanRectangularStickyToggleButtonOptions )¶
Instance Methods¶
Type BooleanRectangularStickyToggleButtonOptions¶
RectangularStickyToggleButtonOptions
Source Code¶
See the source for BooleanRectangularStickyToggleButton.ts in the sun repository.