Replies: 1 comment
-
I could expose new setting for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, for numbers, we can specify a locale, a maximum number of decimal places, and whether to include the sign. Under the hood, the
createFormatter
function does take in a param that gets passed toIntl.NumberFormat
as theminimumFractionDigits
, but it gets programmatically set and not exposed as a field for the number option.The reason why I noticed this is that I currently have a use case where, independent of locale (and not for a money field), I want the numbers in the field to always have exactly two decimal places, for example
5
should be5.00
,5.254
should be5.25
, and so on. If the field was exposed, this would be much easier to achieve.Beta Was this translation helpful? Give feedback.
All reactions