I'm working on a PR to the 'Random' node and wanted to use node status to report some information. This is what I've got coded:
this.status({fill:"gray",shape:"dot",text:"random: from " + node.low + " to " + node.high});
but this is what shows up:
The other colors ( red
, green
, yellow
and blue
) all show up solid (as is shown in the documentation https://nodered.org/docs/creating-nodes/status ).
Anyone got any thoughts?
Platform: macOS 10.14.6
Node-red: v1.1.3
Node.js: v12.13.0
kuema
4 November 2020 05:55
2
I think the status colors are hard-coded. If the color is unknown, it renders as you described, I have stumbled upon that myself.
So in that case, it might be an issue that you used gra y, where the doc says gre y.
2 Likes
Ahh the bloody spelling differences between U.S. english and the rest of the world! My fingers are programmed to use th 'a' instead of the 'e'.
That took care of it. Thanks!
I think we should probably silently handle both spellings....
1 Like
I'd be willing to do do a PR if I knew where it's handled.
system
Closed
18 November 2020 12:05
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.