Skip to content

PlayStopButton

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/PlayStopButton.ts for the most up-to-date information.

Overview

Button for starting/stopping some behavior. Unlike the PlayPauseButton, this indicates that play will re-start from the beginning after switch from play to stop.

@author Sam Reid (PhET Interactive Simulations) @author Jesse Greenberg (PhET Interactive Simulations)

Class PlayStopButton

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

Constructor

new PlayStopButton( isPlayingProperty : Property<boolean>, providedOptions? : PlayStopButtonOptions )

Instance Methods

Type PlayStopButtonOptions

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

PlayControlButtonOptions

Source Code

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