15 lines
414 B
JavaScript

module.exports = function (RED) {
function MarkdownNode (config) {
const node = this
RED.nodes.createNode(this, config)
// which group are we rendering this widget
const group = RED.nodes.getNode(config.group)
// inform the dashboard UI that we are adding this node
group.register(node, config)
}
RED.nodes.registerType('ui-markdown', MarkdownNode)
}