I am using the fa icon group and have this bit of code.
if (msg.payload == "On-line")
{
//
msg = {payload: '<i class="fa fa-bullseye fa-2x nr-dashboard-ok"></i>'};
node.status({fill:"green",shape:"dot",text:"On-line"});
} else
{
//
msg = {payload: '<i class="fa fa-bullseye fa-2x nr-dashboard-error"></i>'};
node.status({fill:"red",shape:"dot",text:"Off-line"});
}
return msg;
Where I am falling over is the colour.
Status quo, the colour is set by the nr-dashboard-ok part.
And there are two options. ok or error.
Ok, I can change the definition of the colour. But alas it isn't that simple.
I am wanting to have three colours.
But to maintain the standard, I have to use the nr-dashboard-xxx part.
Where can I get a list of how to put more options in there.
I have looked at this site:
nr-dashboard
But I get confused when it goes to the:
and the line below.
body.nr-dashboard-theme .nr-dashboard-color { color: @groupTextColor; }
Because if I make the line:
msg = {payload: '<i class="fa fa-bullseye fa-2x nr-dashboard-color { color: #888829; }"></i>'};
It doesn't work.
I picked the values at random. But I am wanting a kind of yellow colour.
Thanks in advance.