@babymotte/node-red-worterbuch
Version:
Nodes for Wörterbuch integration
43 lines (40 loc) • 1.32 kB
HTML
<script type="text/javascript">
RED.nodes.registerType("worterbuch-subls", {
category: "network",
color: "#aabbfa",
defaults: {
name: { value: "" },
server: { value: "", type: "worterbuch-server", required: true },
parent: { value: "", required: false },
},
inputs: 0,
outputs: 3,
icon: "bridge.svg",
label: function () {
return this.name || "wbsubls " + this.parent;
},
outputLabels: ["children", "errors", "connection status"],
});
</script>
<script type="text/html" data-template-name="worterbuch-subls">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name" />
</div>
<div class="form-row">
<label for="node-input-server"><i class="fa fa-server"></i> Server</label>
<input type="text" id="node-input-server" placeholder="Server" />
</div>
<div class="form-row">
<label for="node-input-parent"
><i class="fa fa-file-text-o"></i> Parent</label
>
<input type="text" id="node-input-parent" placeholder="Parent" />
</div>
</script>
<script type="text/html" data-help-name="worterbuch-subls">
<p>
A node that subscribes to changes in the key-tree structure on a Wörterbuch
server.
</p>
</script>