iot-backend/software/flow/node_modules/node-red-dashboard/nodes/ui_group.js

21 lines
692 B
JavaScript
Raw Normal View History

2023-02-22 17:26:41 +01:00
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);
};