Hi!
I'm a brand new NR user. I'm pretty familiar with javascript, not so much with styling html.
My goal is to change the background color of a text object from a javascript function, seems like the msg.topic is a good way to do this. I'm trying to create a UI Template, but I'm clearly doing something wrong. This is my template (based on the example provided in NR):
<div ng-bind-html="msg.payload">
<font color="{{(msg.topic === 'Inactive') ? 'red' : 'green'}}"></font>
</div>
In this case, I'm using the font color, just to see if it's working. It's not. I'm also not sure if I can use 'background' instead of 'font'.
Thanks for any suggestions.
Don