Hello! Here’s the code:
https://stackblitz.com/~/github.com/pitang-teste/angular-17-handsontable
Based on the tutorial:
First I created the project using the command:
ng new angular-17-handsontable
After that I added the Handsontable, following this tutorial:
Handsontable Docs: Installation in Angular
1° Question:
Moving on to the registerAllModules() step, I placed it in src/app/app.config.ts, however I don’t know if this is the best place (or the correct place) for it. According to the documentation, it would be placed in the app.module.ts.
2° Question
Moving on to the styling part, by following the documentation and placing this line inside my styles.scss
@import ‘~handsontable/dist/handsontable.full.css’;
And the following error occurred :
Could not resolve “~handsontable/dist/handsontable.full.css”
To fix it, I had to change it to:
@import ‘handsontable/dist/handsontable.full.css’;
However, this fix returns the following warnings:
[WARNING] "@charset" must be the first rule in the file [invalid-@charset]
node_modules/handsontable/dist/handsontable.full.css:2147:0:
2147 │ @charset "UTF-8";
3° Question
I put the ‘locale’ configuration in src/app/app.config.ts, although it works for the context menu options, it doesn’t work for the numeric type columns. For example, i need to set ‘pt-BR’ currency and the numbers should be like 123.456,789 but instead i get 123,456,789.
I created a basic example in components src/app/components/grid-example, and to summarize the erros i got: the “dropdown” doesn’t fully shows, i got the warnings i mentioned, and the ‘numbro’ library doesn’t work for what i need. And I’m still not sure about the modules registrations at app.config.ts.