Skip to content

RectangularStickyToggleButton

Overview

RectangularStickyToggleButton is a rectangular toggle button that toggles the value of a Property between 2 values. It has a different look (referred to as 'up' and 'down') for the 2 values.

@author John Blanco (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)

Class RectangularStickyToggleButton

import { RectangularStickyToggleButton } from 'scenerystack/sun';

Constructor

new RectangularStickyToggleButton( valueProperty : TProperty<T>, valueUp : T, valueDown : T, providedOptions? : RectangularStickyToggleButtonOptions )

Instance Methods

dispose()

Type RectangularStickyToggleButtonOptions

import type { RectangularStickyToggleButtonOptions } from 'scenerystack/sun';

Source Code

See the source for RectangularStickyToggleButton.ts in the sun repository.