@babymotte/node-red-worterbuch
Version:
Nodes for Wörterbuch integration
52 lines (49 loc) • 1.76 kB
HTML
<script type="text/javascript">
RED.nodes.registerType("worterbuch-sub", {
category: "network",
color: "#aabbfa",
defaults: {
name: { value: "" },
server: { value: "", type: "worterbuch-server", required: true },
key: { value: "", required: true },
unique: { value: false, required: true },
liveOnly: { value: false, required: true },
},
inputs: 0,
outputs: 4,
icon: "bridge.svg",
label: function () {
return this.name || "wbsub " + this.key;
},
outputLabels: ["set", "deleted", "errors", "connection status"],
});
</script>
<script type="text/html" data-template-name="worterbuch-sub">
<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-key"><i class="fa fa-file-text-o"></i> Key</label>
<input type="text" id="node-input-key" placeholder="Key" />
</div>
<div class="form-row">
<label for="node-input-unique"
><i class="fa fa-file-text-o"></i> Unique</label
>
<input type="checkbox" id="node-input-unique" placeholder="Unique" />
</div>
<div class="form-row">
<label for="node-input-liveOnly"
><i class="fa fa-file-text-o"></i> Live Only</label
>
<input type="checkbox" id="node-input-liveOnly" placeholder="Live Only" />
</div>
</script>
<script type="text/html" data-help-name="worterbuch-sub">
<p>A node that subscribes to a key on a Wörterbuch server.</p>
</script>