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
Unfortunately we exclusively focus on the integration in Odoo which does not require hybrid integration with React, we might have overlooked crucial elements to ease that step. That being said, let's try to sort it out.
Could you elaborate on your usecase? Maybe with an example of which code you are starting from?
Generally speaking, If you want to use the library in an outside project there are 2 approaches.
1. build from scratch
build the library (npm run dist) and use the compiled file that suits your need (they are located in <rootDir>/dist.
You can then find the same files in <rootDir>/node_modules/@odoo/o-spreadsheet/dist
The file iife will automatically add the global varialbe o_spreadsheet to window -> you can invoke window.o_spreadsheet, in which you will find all the useful classes like Spreadsheet (o_spreadsheet.Spreadsheet) and Model (o_spreadsheet.Model)
I can't implement simple example in existing react project, because Model and Spreadsheet exports does not exist, any hints?
The text was updated successfully, but these errors were encountered: