Skip to content

BackButton

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.