Painting NumberInput o TextInput

Hi there! I want to put a condition in a NumberInput o TextInput that background of it to be painted if a condition is validated.
Just like in the image but this is a column of a table.

Someone knows if it is possible?