node-red-dashboard
Version:
A set of dashboard nodes for Node-RED
18 lines (15 loc) • 510 B
JavaScript
module.exports = function(RED) {
function GroupNode(config) {
RED.nodes.createNode(this, config);
this.config = {
name: config.name,
disp: config.disp,
width: config.width,
order: config.order,
tab: config.tab
};
if (!this.config.hasOwnProperty("disp")) { this.config.disp = true; }
if (this.config.disp !== false) { this.config.disp = true; }
}
RED.nodes.registerType("ui_group", GroupNode);
};