Add highlights prop for cell highlighting (multi-user collaboration) #420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! I'm currently developing a real-time collaborative spreadsheet application using this library, where multiple users can actively edit the same sheet. In my use case, I need to display other users’ active cells on the grid. However, there was no existing functionality to highlight cells based on external states.
To address this, I've introduced a new highlights prop. This allows developers to pass in custom highlighting data—particularly useful for indicating which cells are active for other users. I’ve tried to follow the existing code style and methodology as closely as possible for consistency.
Additionally, I’ve updated the Storybook examples to simulate real-time highlighting behavior, making it easy to see how the feature works in practice.
Thank you for reviewing this! I’m happy to discuss any feedback or make adjustments as needed.