Skip to content

StepButton

Overview

Generalized button for stepping forward or back. While this class is not private, clients will generally use the convenience subclasses: StepForwardButton and StepBackwardButton

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

Class StepButton

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

Constructor

new StepButton( providedOptions? : StepButtonOptions )

Instance Methods

Type StepButtonOptions

import type { StepButtonOptions } from 'scenerystack/scenery-phet';
  • radius?: number
  • direction?: Direction
  • iconFill?: TPaint
  • & StrictOmit<RoundPushButtonOptions, "content" | "xContentOffset" | "xMargin" | "yMargin">

Source Code

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