@parallaxcontrol/node-red-control
Version:
A comprehensive package of Node-RED nodes designed to seamlessly integrate with the Parallax Control Engine, offering enhanced control capabilities for AV Automation.
44 lines (41 loc) • 1.51 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('or-gate', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: {value: ""},
numInputs: { value: 2, required: true }
},
inputs: 1,
outputs: 1,
icon: "arrow-in.svg",
label: function() {
return this.name || "or-gate";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
}
});
</script>
<script type="text/html" data-template-name="or-gate">
<!-- -->
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<!-- Inputs -->
<div class="form-row">
<label for="node-input-numInputs"><i class="icon-tag"></i> Number of Inputs</label>
<input type="number" id="node-input-numInputs" placeholder="Number of inputs">
</div>
<!-- -->
<small id="inputHelpBlock" class="form-text text-muted">
<p>If any input is true, the output will be true.<br>
Expects: JSON Object, i.e.: {"Input":1,"Value":true} </p>
</small>
</script>
<script type="text/html" data-help-name="or-gate">
<p>Logic Node: This node acts as an OR logic gate, emitting true if any input is true.</p>
<p>Note: Drive this signal with the 'Input Select' node.</p>
<p>Expects: JSON Object, i.e.: {"Input":1,"Value":true}</p>
</script>