Select range of cells with getSelection() #6438
Unanswered
danillohss
asked this question in
Q&A | 常见问题
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello friends, I am facing a specific issue. My goal is to select cells from a spreadsheet and retrieve those values to save them. Initially, I searched for the functionality to do this and found the following code:
Link: https://reference.univer.ai/en-US/classes/FSelection
However, I couldn't access the getSelection() function. I kept searching and discovered that to access it, I would need to install the Facade API package. Indeed, the function is inside Facade.js, located in the node_modules folder.
After doing this, I realized I would need to instantiate the spreadsheet differently, as shown on this page: https://reference.univer.ai/en-US.
I did that, installed and instantiated the spreadsheet this way, but now I am encountering this error in the console:
The column width is less than 0, need to adjust page width to make it greater than 0
Version Vue.js: 3.3.10
Version Univer: 0.15.0
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions