Skip to content

SoundToggleButton

Overview

Button for toggling sound on and off.

@author John Blanco @author Chris Malley (PixelZoom, Inc.) @author Sam Reid (PhET Interactive Simulations)

Class SoundToggleButton

import { SoundToggleButton } from 'scenerystack/scenery-phet';

Constructor

new SoundToggleButton( property : Property<boolean>, provideOptions? : SoundToggleButtonOptions )

Instance Methods

dispose()

Type SoundToggleButtonOptions

import type { SoundToggleButtonOptions } from 'scenerystack/scenery-phet';

BooleanRectangularToggleButtonOptions

Source Code

See the source for SoundToggleButton.ts in the scenery-phet repository.