I’m working with the Editable Data example and it’s going swimmingly. One feature I need to add that I’m unsure of is the ability to set CSS classes on row based on the state of the data in a child cell. For instance:
firstNamecolumn and that column is editable;
.activeclass added to it (either within an
onBluror hit the
Enterkey), that row will also get a
.updatingclasses are removed;
.updatingis removed and a new
.erroredclass is added.
Suggestions around intelligent ways to pass CSS classes around to the parent row like this based on a Cell’s editable input value?
Should I keep this out of react-table entirely and just keep tracks of row using
useState and the row id?
Really appreciate any help I can get!
Juan Pablo Isaza