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

Question: Accessing a cell by its id #305

Open
ainnotate opened this issue Jul 17, 2023 · 2 comments
Open

Question: Accessing a cell by its id #305

ainnotate opened this issue Jul 17, 2023 · 2 comments

Comments

@ainnotate
Copy link

I'm trying to color code cells based on some failure condition.

Is there a way to access a given cell by by its cell id?

Thanks a lot

@ainnotate
Copy link
Author

Any inputs on this?

Basically When user Submits the sheet, the empty cells are to be highlighted. Is there a way to achieve this without accessing the cell by its id?

@hussamkhatib
Copy link

You can use cellClassName prop to do it
Check if the cell value are empty in rowData and if the form is submitted. If yes, then apply the class which has the background you want.

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

2 participants