Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui_group.js 692B

1234567891011121314151617181920
  1. module.exports = function(RED) {
  2. function GroupNode(config) {
  3. RED.nodes.createNode(this, config);
  4. this.config = {
  5. name: config.name,
  6. disp: config.disp,
  7. width: config.width,
  8. order: config.order,
  9. tab: config.tab,
  10. collapse: config.collapse || false,
  11. className: config.className || ''
  12. };
  13. if (!this.config.hasOwnProperty("disp")) { this.config.disp = true; }
  14. if (this.config.disp !== false) { this.config.disp = true; }
  15. if (!this.config.hasOwnProperty("collapse")) { this.config.collapse = false; }
  16. }
  17. RED.nodes.registerType("ui_group", GroupNode);
  18. };