-
Notifications
You must be signed in to change notification settings - Fork 140
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
Headers should not be selectable #438
Comments
Hi aioobe! We just released Version 5 alpha. In this version it will be possible to make a custom selection based on a click on a particular cell. This will allow to implement the desired funktionality. Would you like to try it? |
Cool! Yes, I'll definitely give it a try. Is there any docs on this new functionality by any chance? |
@aioobe Currently, we are working on the docs for v5. For now, you can look at these examples showcasing the individual functionalities: https://github.com/silevis/reactgrid/tree/v5-dev/reactgrid/stories |
I've switched over to v5 and it's definitely better in many regards. The API feels simplified without limiting use cases. I do experience a bunch of new issues though:
I don't know if you like me to post these issues individually, but it feels like fairly obvious things that worked fine in Finally, do you happen to have an example of my initial issue posted here, regarding customizing selection when clicking headers? Should I put something in |
@aioobe Thanks for the feedback, we appreciate it! As for Could you provide a snippet or a sandbox with your custom cell implementation? That would help us better understand the issue you're facing with the borders. As for your initial question, you can do this using the handler passed to onCopy, for example, by skipping cells where |
Cool, thanks.
That's great. I did in fact tweak it a bit when I copied the implementation to my code. I added
I copied
to
to achieve this:
Thanks for this suggestion. The I realize that all use cases are different, but would it be a reasonable feature request to exempt not |
Describe the bug
No spreadsheet software that I've tested allows the user to select / copy the header cells. This makes it messy to copy / paste a whole table/whole row/whole column to and from other spreadsheet software.
Current behavior
ReactGrid allows the user to select and copy/paste both column and row headers.
Expected behavior
The header cells (both row headers and column headers) should be exempt from selections.
Screenshots or gifs
Your environment details
The text was updated successfully, but these errors were encountered: