Initial commit
This commit is contained in:
20
node_modules/node-red-dashboard/nodes/ui_group.js
generated
vendored
Normal file
20
node_modules/node-red-dashboard/nodes/ui_group.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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,
|
||||
collapse: config.collapse || false,
|
||||
className: config.className || ''
|
||||
};
|
||||
if (!this.config.hasOwnProperty("disp")) { this.config.disp = true; }
|
||||
if (this.config.disp !== false) { this.config.disp = true; }
|
||||
if (!this.config.hasOwnProperty("collapse")) { this.config.collapse = false; }
|
||||
}
|
||||
|
||||
RED.nodes.registerType("ui_group", GroupNode);
|
||||
};
|
||||
Reference in New Issue
Block a user