UNPKG

@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.

49 lines (46 loc) 1.75 kB
<script type="text/javascript"> RED.nodes.registerType('clear-signal-state', { category: 'parallax', color: '#C0C0C0', defaults: { name: { value: "" }, dataType: { value: "", required: true } }, inputs: 1, outputs: 1, icon: "font-awesome/fa-eraser", label: function() { return this.name || "clear-signal-state"; }, oneditprepare: function() { // Code to run when the edit dialog is prepared } }); </script> <script type="text/html" data-template-name="clear-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>Clears all data based on the selected data type.</small> </div> </script> <script type="text/html" data-help-name="clear-signal-state"> <p>This node clears the state of a signal based on the selected data type.</p> <p>[Expected: User configuration of datatype. </p> </script>