Opened 13 years ago
Closed 13 years ago
#6428 closed task (invalid)
CurrencyTextBox: add trailing 0s by default
Reported by: | bill | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Dijit - LnF | Version: | 1.1.0 |
Keywords: | ibm | Cc: | |
Blocked By: | Blocking: |
Description
CurrencyTextBox has an option to add trailing zeros, see euro example in http://download.dojotoolkit.org/current-dev/dojo-release-1.1.0rc1/dijit/tests/form/test_validate.html
Would be nice to make this the default.
US currency example on that page is confusing because if you type in "123" and tab away you'd expect it to convert to "123.00" but instead it turns yellow.
Taken from IBM Design Leadership recommendations.
Note: See
TracTickets for help on using
tickets.
I think we do this by default.
The US$ case uses the constraint fractional:true, in other words, require cents. Whole values are an error.
By default, the cents are optional, which is how the Euro samples are set up.