Skip to content

Instantly share code, notes, and snippets.

@fcgdam
Created May 10, 2018 15:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fcgdam/6be233afa8225311694b663804a58d20 to your computer and use it in GitHub Desktop.
Node-Red Status indicator Template code
<style>
.dot {
height: 25px;
width: 25px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
float: right;
}
</style>
<div>{{msg.payload.title}}
<span class='dot' style='background-color: {{msg.payload.color}}; box-shadow: black 0 -1px 1px 0px, inset black 0 -1px 4px'></span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment