Skip to content

SoundToggleButton

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/buttons/SoundToggleButton.ts for the most up-to-date information.

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.