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_link.js 379B

123456789101112
  1. module.exports = function(RED) {
  2. var ui = require('../ui')(RED);
  3. function LinkNode(config) {
  4. RED.nodes.createNode(this, config);
  5. var node = this;
  6. var done = ui.addLink(config.name, config.link, config.icon, config.order, config.target, config.className);
  7. node.on("close", done);
  8. }
  9. RED.nodes.registerType("ui_link", LinkNode);
  10. };