Hi, I’m working on a business project with Angular 8, and using HandsOnTable/Angular v7.0.0 ang HandsOnTable v8.3.2, both with numbro v.2.1.2. When i pass my data format it not works only work the default en-US format. Any suggestions how can I handle with it?
pt-BR numeriFormat not working
Do you also load the language file? You can find it here https://handsontable.com/docs/8.3.2/components/numbro/dist/languages.min.js
Then your numericFormat.pattern
should use just a $ (as in the demo below).
Example https://jsfiddle.net/Lq8megpy/
No I didn’t load this language file. So do I import it in the component tha I use the handson? or should I import it in the project root?
Thanks for helping
Pretty similar like as in this example https://handsontable.com/docs/angular-setting-up-a-locale/ you use the numbro’s languages file and register the language
app.component.ts
I will try this way here, thanksss very much
Sorry for that! My screenshot did not include Handsontable and the was a typo in the declaration of Numbro import. It should be
Please check if it works for you.
Thanks it works fine