Conditionally change row colour in EuiInMemoryTable

Hi,

How can I conditionally change the row colour in EuiInMemoryTable ?

I have a column, say health. I want to change the entire row colour based on the value in the health column (of the corresponding row).

Health -> row-colour

Alarm red
Warning orange
Healthy green

And what is the rowProps property of EuiInMemoryTable for? (Elastic UI)

Thanks

Hello @Sheereen !

Is this what you had in mind: EUI table (forked) - CodeSandbox

1 Like

Yes... exactly

Thanks so much

Got to know rowprops and cellprops too :smiley:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.