Getting cell validation state in custom Renderer

Tags: #<Tag:0x00007efc64490f18>

This was from a previous posting, but wanted to follow up.
I am using the validator function on a cell passing in a regex. When I use the standard out-of-box cell renderer, it correctly changes the color of the cell to red when it fails validation.

However, If I use a custom renderer, the cell doesn’t change color, it just uses my renderer.
The validation logic is still firing behind the scenes, but there is no visual update to the cell.
My question is, how can I solve this?

If the cellproperties passes in a valid state, I could customize the render myself, but I don’t see any attributes in cellproperties or any other properites that are passed into the custom renderer.

How can I update the cell appearance to show in invalid state via my custom renderer?

Hi @mhennessy7

If you use a custom renderer you could use a custom validator too. Here is a link to our docs about validation - https://handsontable.com/docs/7.4.2/demo-data-validation.html

Alternatively, you could react on the afterValidate hook - https://handsontable.com/docs/7.4.2/Hooks.html#event:afterValidate or make use validateCells settings options - https://handsontable.com/docs/7.4.2/Core.html#validateCells