Uploaded June 2020 | Updated November 2026, 1 day ago
This is the third video in the series on using the dashboard template node were we look at adding common elements.
In this video we will concentrate on using SVD graphics and material icons in the template node.
SVG graphics are commonly used for indicating status.
We will also add a switch and checkbox.
Tutorial on site
stevesnoderedguide.com/using-dashboard-template-node
Previous video -part 1
Using The Node-Red Template UI Node or Widget
youtu.be/TMO9gCjA_m4
Previous video -part 2
youtu.be/YChTlA3NhZk
Links mentioned in video 3
w3schools.com/graphics/svg_intro.asp
google.github.io/material-design-icons
discourse.nodered.org/t/material-design-icons-vs-font-awesome/12615/17
material.io/resources/icons/?style=sharphttps://fontawesome.com/v4.7.0
fontawesome.com/v4.7.0/examples
Flow used in this video.
stevesnoderedguide.com/download/dashboard-template-node-part-3
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope
This is the third video in the series on using the dashboard template node were we look at adding common elements.
In this video we will concentrate on using SVD graphics and material icons in the template node.
SVG graphics are commonly used for indicating status.
We will also add a switch and checkbox.
Tutorial on site
stevesnoderedguide.com/using-dashboard-template-node
Previous video -part 1
Using The Node-Red Template UI Node or Widget
youtu.be/TMO9gCjA_m4
Previous video -part 2
youtu.be/YChTlA3NhZk
Links mentioned in video 3
w3schools.com/graphics/svg_intro.asp
google.github.io/material-design-icons
discourse.nodered.org/t/material-design-icons-vs-font-awesome/12615/17
material.io/resources/icons/?style=sharphttps://fontawesome.com/v4.7.0
fontawesome.com/v4.7.0/examples
Flow used in this video.
stevesnoderedguide.com/download/dashboard-template-node-part-3
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope


![Store A Function in Global Context
In this video we will look at hoe to store an function in the global context so it can be used in the workspace by simply importing it like any other variable.
Site referenced in video
https://community.oh-lalabs.com/t/how-to-define-global-functions-and-libraries-in-nodered/2883
Code taken from flow
function log_data(message,node,flow) {
let d = new Date();
let now = d.getTime();
let logs = global.get(logs) || [];
let temp = {};
temp.timestamp = now;
temp.utctime = d.toLocaleString();
temp.flow = flow;
temp.node = node;
temp.message = message;
logs.push(temp);
global.set(logs, logs);
}
global.set(log_data,log_data);
//to use import it into the function node using
//let log_data=global.get(log_data);
//call it anywhere in the function using
//log_data(message, node, flow); Store A Function in Global Context](https://i.ytimg.com/vi/Kv0NIjKVV7k/mqdefault.jpg)







