How to conditionally set text colors in a cell

Tags: #<Tag:0x00007f8b3c14a4a0> #<Tag:0x00007f8b3c14f360>

How do I conditionally set multiple text colors in a cell?

e.g. I want letters to be colored blue, and numbers to be colored red as seen in the screenshot below.

image

Hi @lemjuidump

You would need to create a custom cell renderer. However, it does not provide a logic for char recognizing by default, so you would need to create it by yourself. Here https://handsontable.com/docs/javascript-data-grid/conditional-formatting/ you can start. We have examples of cell renderers coloring cells based on their value. The difference is, we do that for the whole content, not the part of it.