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.

59 lines (55 loc) 2.19 kB
<!-- Copyright (c) 2025 Parallax AV Design Inc. All rights reserved. This software is licensed, not sold. You may not copy, modify, merge, publish, distribute, sublicense, or sell copies of this file or substantial portions of it except as expressly permitted by the LICENSE file included with this package. Use is restricted to building manifests for the Parallax Control Node-RED nodes. See LICENSE for details. --> <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>