Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel-like features #9

Open
sventies opened this issue Dec 5, 2017 · 3 comments
Open

Excel-like features #9

sventies opened this issue Dec 5, 2017 · 3 comments

Comments

@sventies
Copy link

sventies commented Dec 5, 2017

Awesome library! This is more of a feature request than an issue, let me know if you have other places for this that are more appropriate.

Are you planning on adding excel-like features to it, by which I mean things like:

  • Select multiple cells by holding shift
  • Go to the top / bottom / left / right by holding cmd (using mac)
  • On right mouse click, have options like delete or add row or column.

This kind of functionality is in Handsontable, as you might be aware of. First and foremost I'm wondering if you are planning to become more like this, or you're more focussed on a different kind of functionality.

@denisraslov
Copy link
Owner

denisraslov commented Dec 6, 2017

Hello @Sventenhaaf!
Thank you!

I think, I have different answers about the features in your request. Step by step:

  • I see selecting multiple cells and copy-pasting them as features which are not exactly relevant for react-spreadsheet-grid right now, because one of the main features of this library is an opportunity to use custom cell-editors. So, we can't work with a set of the selected cells in this way because all of them could have different editors (input, select, autocomplete, checkbox, etc.). And the grid is not aware of types of using editors.
    Probably, it could be a good idea to add one more component to this library. Something like InputsGrid that would use Grid inside and use only built-in Input as cell-editors. In this case we would have something like the simplest excel table and work with multiple cells would be relevant there (and we would implement it for this component).
    How do you like this idea?

  • Yes, this is a good feature. I think, it will be done in one of the next releases.

  • This feature is better to be implemented in a high-order component where you use Grid (see The pattern of regular usage section in Readme). The reason is you storage columns and rows in this component and pass them to a Grid from there. So, you can add a right mouse click menu, change columns/rows by clicking it and then simply re-render the Grid.

If you have other questions or comments related to this topic, I will try to answer them too. ✌️

@kamaldlk
Copy link

kamaldlk commented Dec 7, 2017

next releases When will we sec any timeline is there @denisraslov

@sventies
Copy link
Author

Thanks a bunch @denisraslov

I think your proposed suggestions are definitely in the direction that I would like to see them. Looking forward to see them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants