You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to provide a number formatter? We're moving away from rc-number-inout which accepted a formatter function that would format the value for display, but wouldn't change the "raw" value held in the form.
I'm wanting to comma-separate the values so if a use types 1000 it turns into 1,000. I tried using the locale option thinking that would work via toLocaleString but it doesn't appear to have made a difference.
My goal is for the value in the form to remain a number but the displayed value should be a string with commas.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to provide a number formatter? We're moving away from rc-number-inout which accepted a
formatter
function that would format the value for display, but wouldn't change the "raw" value held in the form.I'm wanting to comma-separate the values so if a use types
1000
it turns into1,000
. I tried using the locale option thinking that would work viatoLocaleString
but it doesn't appear to have made a difference.My goal is for the
value
in the form to remain a number but the displayed value should be a string with commas.I tried formatting it on change but I've realized that's way to finnicky because I have constantly convert to/from strings/numbers.
Beta Was this translation helpful? Give feedback.
All reactions