Skip to content

Commit

Permalink
pass tandems in FineCoarseSpinner demo, see #460
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jan 23, 2019
1 parent 43e8712 commit be3ae04
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions js/demo/ComponentsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,25 @@ define( function( require ) {
};

// Creates a demo for FineCoarseSpinner
const demoFineCoarseSpinner = function( layoutBounds ) {
const demoFineCoarseSpinner = function( layoutBounds, options ) {

const numberProperty = new NumberProperty( 0, {
range: new Range( 0, 100 )
range: new Range( 0, 100 ),
tandem: options.tandem.createTandem( 'numberProperty' )
} );

const enabledProperty = new BooleanProperty( true );
const enabledProperty = new BooleanProperty( true, {
tandem: options.tandem.createTandem( 'enabledProperty' )
} );

const spinner = new FineCoarseSpinner( numberProperty, {
enabledProperty: enabledProperty
enabledProperty: enabledProperty,
tandem: options.tandem.createTandem( 'spinner' )
} );

const checkbox = new Checkbox( new Text( 'enabled', {
font: new PhetFont( 20 )
font: new PhetFont( 20 ),
tandem: options.tandem.createTandem( 'checkbox' )
} ), enabledProperty );

return new VBox( {
Expand Down

0 comments on commit be3ae04

Please sign in to comment.