Open Row if threshould change color

if i add a new Row and there add some panel like this

would it be closed. It should automatic open if something (a threshold) turn red - as soon green it will collapse back

have a nice day

would this idea be possible?