Skip to content

BackButton

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

Overview

Button that is intended to indicate going backwards, much like the back button on a web browser. It was originally created for returning to the level selection screen when playing a game. It looks like a button with an arrow pointing to the left.

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

Class BackButton

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

Constructor

new BackButton( providedOptions? : BackButtonOptions )

Instance Methods

Type BackButtonOptions

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

Source Code

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