Giter VIP home page Giter VIP logo

Comments (3)

sanchit3008 avatar sanchit3008 commented on September 19, 2024

This is a good question, and I dont see a method to return the currently active sheet. I still need to play around a bit to see if this info is being returned by something else. Keeping this thread open.

For the second part, you can probably attach a click listener outside FS and then use the setSelection method

from fortune-sheet.

subhajitnag28 avatar subhajitnag28 commented on September 19, 2024

Hi @sanchit3008 If we click outside of the fortunesheet how to removed the selection where my last cursor point was?

I attach a click listener outside FS and then use the setSelection method but I'm getting the below error

WhatsApp Image 2024-06-12 at 19 28 41

when there is one FS there is no issue with the error but if we are creating multiple FS, in the second FS onward I'm not able to update anything.

ref.current?.setSelection([ { row:[], column:[] } ]);

In the demo page of FS in the console I have seen the below error -

Screenshot 2024-06-12 at 7 36 07 PM

Can you please guide me.

from fortune-sheet.

sanchit3008 avatar sanchit3008 commented on September 19, 2024

If I understand this correctly, you want to have multiple sheets on a page. When you click outside the sheet area you want the selection to be removed.

  1. Are you using multiple Workbook components or are you referring to multiple sheets in 1 workbook?
  2. When the user click the sheet component again, then what is the expectation?

from fortune-sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.