Skip to content

Commit

Permalink
add options.accumulatorOptions to Keypad, phetsims/scenery-phet#541
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 23, 2021
1 parent fd239f9 commit 22d6c29
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/common/view/KeypadDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ class KeypadDialog extends Dialog {
contentSpacing: 10, // {number} - vertical spacing between the content of the KeypadDialog.

keypadOptions: {
// {number} - maximum number of digits that can be entered on the keypad.
maxDigits: 8,
accumulatorOptions: {

// {number} - maximum number of decimal places that can be entered on the keypad.
maxDigitsRightOfMantissa: CollisionLabConstants.DISPLAY_DECIMAL_PLACES
// {number} - maximum number of digits that can be entered on the keypad.
maxDigits: 8,

// {number} - maximum number of decimal places that can be entered on the keypad.
maxDigitsRightOfMantissa: CollisionLabConstants.DISPLAY_DECIMAL_PLACES
}
},

// super-class options
Expand Down

0 comments on commit 22d6c29

Please sign in to comment.