Skip to content

FineCoarseSpinner

Overview

A type of spinner UI component that supports 'fine' and 'coarse' changes to a numeric value.

< << [ value ] >> >

@author Chris Malley (PixelZoom, Inc.)

Class FineCoarseSpinner

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

Constructor

new FineCoarseSpinner( numberProperty : NumberProperty, providedOptions? : FineCoarseSpinnerOptions )

Instance Methods

dispose()

Type FineCoarseSpinnerOptions

import type { FineCoarseSpinnerOptions } from 'scenerystack/scenery-phet';
  • deltaFine?: number
  • deltaCoarse?: number
  • spacing?: number
  • arrowsSoundPlayer?: TSoundPlayer
  • numberDisplayOptions?: StrictOmit<NumberDisplayOptions, "tandem">
  • arrowButtonOptions?: StrictOmit<ArrowButtonOptions, "numberOfArrows" | "tandem" | "focusable" | "soundPlayer">
  • & StrictOmit<ParentOptions, "children" | "valueProperty" | "enabledRangeProperty" | "keyboardStep" | "shiftKeyboardStep" | "pageKeyboardStep" | "onInput">

Source Code

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