-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Configure thousand separator character #6
Comments
I would love to see this feature as well! |
Hi, If anyone interested - please contact me at: void@buntownik.pl. In the meantime I will try to fork this project and push in new version. |
@helgadeville I would love to see your pull request. A few months ago I spent a couple hours trying to implement this feature but it got too complex, and I never found a solution that I liked. |
Let's hope that I have created a good pull request :) Greetings. |
Hi Paul, thanks for Your interest. I have created a pull request from my forked
I have done some testing, but this code should be considered "hot". Hope it helps - cause Your directive is really a good idea :) Olga P.S. I use it with German locale setting W dniu 13.01.2015, 16:47, Paul Yoder pisze:
|
My branch version will go to our production in one week from now. The testers are satisfied; however, the testing still continues. Greetingz. |
+1 |
@paulyoder Another solution would be to use Intl.NumberFormat which is supported by latest browsers and offers a build-in formatter. Quoted from Mozilla doc: var number = 123456.789;
// German uses comma as decimal separator and period for thousands
console.log(new Intl.NumberFormat('de-DE').format(number));
// → 123.456,789 For older brosers, you can fallback to your implementation ;-) |
hi, are you planning to add localization support for this? this is the best working example i have ever found. but i can not use if it doesnt support localization. (. for thousand seperator , for decimal seperator) |
Hi, Greetingz |
hi, no you understand my question correctly. i just couldnt find where to configure thousand and decimal seperators. i analyzed the code but couldnt find it. if you have time could you please prepare a plunker to show that customizing of thousand and decimal seperator. i will be very happy if you can do so.. thanks.. |
Assuming that "app" object is Your angular application definition, see the code below. app.config([ 'fcsaNumberConfigProvider', function(fcsaNumberConfigProvider) { |
thank you so much for your interest. i will try it, but when i look at fcsaNumber.js file, i couldnt see these variables that you mentioned. am i looking wrong file? or wrong branch? which file will i use in my project, in master branch src/fcsaNumber.js or thousands seperator branch src/fcsaNumber.js? |
blockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: #cccccc 1px solid;} p {margin: 0px;padding: 0px;} thank you so much for your interest. i will try it, but when i look at fcsaNumber.js file, i couldnt see these variables that you mentioned. am i looking wrong file? or wrong branch? which file will i use in my project, in master branch src/fcsaNumber.js or thousands seperator branch src/fcsaNumber.js?
|
blockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: #cccccc 1px solid;} p {margin: 0px;padding: 0px;} thank you so much for your interest. i will try it, but when i look at fcsaNumber.js file, i couldnt see these variables that you mentioned. am i looking wrong file? or wrong branch? which file will i use in my project, in master branch src/fcsaNumber.js or thousands seperator branch src/fcsaNumber.js?
|
blockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: #cccccc 1px solid;} p {margin: 0px;padding: 0px;} there is two branches: —Reply to this email directly or view it on GitHub.
|
Is this branch working (thousandsSeparator)? |
This directive works great. However, it would be nice to be able to configure the separator character, since many European countries use a space instead of a comma
The text was updated successfully, but these errors were encountered: