@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.
48 lines (45 loc) • 1.89 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('recall-signal-state',{
category: 'parallax', // Category in palette
color: '#C0C0C0', // Color in palette
defaults: {
name: {value:"recall-signal-state"}, // Default name of the node
dataType: {value:"", required:true} // Data type selection
},
inputs:1, // Number of input ports
outputs:1, // Number of output ports
icon: "font-awesome/fa-undo", // Icon shown in palette
label: function() {
return this.name || "recall-signal-state";
},
oneditprepare: function() {
// Code to run when the edit dialog is opened
}
});
</script>
<script type="text/html" data-template-name="recall-signal-state">
<!-- Name -->
<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>
<!-- Dropdown -->
<div class="form-row">
<label for="node-input-dataType"><i class="icon-tag"></i> Data Type</label>
<select id="node-input-dataType">
<option value="DIGITAL">Digital</option>
<option value="ANALOG">Analog</option>
<option value="SERIAL">Serial</option>
<option value="DIGITAL_DICTIONARY">Digital Dictionary</option>
<option value="ANALOG_DICTIONARY">Analog Dictionary</option>
<option value="SERIAL_DICTIONARY">Serial Dictionary</option>
</select>
</div>
<!-- Node Property Window Notes -->
<div>
<small>Recalls data based on the selected data type.</small>
</div>
</script>
<script type="text/html" data-help-name="recall-signal-state">
<p>This node allows recalling of stored data based on the selected data type.</p>
</script>