Skip to content

Instantly share code, notes, and snippets.

@fcgdam fcgdam/template.js
Created May 10, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.