ng2-handsontable icon indicating copy to clipboard operation
ng2-handsontable copied to clipboard

How do I use with the pro version?

Open davidmontgom opened this issue 7 years ago • 4 comments

How do I use with the pro version?

Thanks

davidmontgom avatar Apr 13 '17 11:04 davidmontgom

Handsontable's is a different package and I don't think you can install it as 'handsontable'. So you would need to fork this repository and adjust the import path 'handsontable/dist/handsontable.full.js' that is used in several places. Also, the typings in handsontable.d.ts only reflect the free version, so if you use pro features, you may need to add the typings for those features to prevent TypeScript from throwing errors.

Does that help?

renehamburger avatar Apr 13 '17 16:04 renehamburger

It might be worth contacting Handsoncode to see if they can think of a way to make both version accessible through the same module to prevent issues like that.

renehamburger avatar Apr 13 '17 16:04 renehamburger

Hi @renehamburger, are the instructions to replace the free version with the pro version still the same for the latest version of ng2-handsontable?

I tried changing the dependencies in the package.json file from: "dependencies": { "handsontable": "^0.35.0" },

to

"dependencies": { "handsontable-pro": "^1.15.0" },

but its still picking up the free version. Any thoughts on what I might be missing?

saurabhajmera avatar Jan 22 '18 22:01 saurabhajmera

I was able to get the pro version working, by doing some minor changes to ng2-handsontable code, you can find the details here: https://github.com/saurabhajmera/ng2-handsontable. Also, I checked with handsontable about the typing file, it seems like, the pro version uses the same typings file as the free version.

saurabhajmera avatar Feb 01 '18 19:02 saurabhajmera