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

13 lines
379 B
JavaScript

module.exports = function(RED) {
var ui = require('../ui')(RED);
function LinkNode(config) {
RED.nodes.createNode(this, config);
var node = this;
var done = ui.addLink(config.name, config.link, config.icon, config.order, config.target, config.className);
node.on("close", done);
}
RED.nodes.registerType("ui_link", LinkNode);
};