@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.
45 lines (42 loc) • 1.5 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('extract-message-data', {
category: 'parallax',
color: '#C0C0C0',
defaults: {
name: { value: "" },
objectToGet: { value: "", required: true }
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-file-o",
label: function() {
return this.name || "Extract Message Data";
},
oneditprepare: function() {
// Code to run when the editor is opened
}
});
</script>
<script type="text/html" data-template-name="extract-message-data">
<!-- 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-objectToGet"><i class="icon-tag"></i> Object To Get</label>
<select id="node-input-objectToGet">
<option value="Type">Type</option>
<option value="JoinID">JoinID</option>
<option value="Value">Value</option>
</select>
</div>
<!-- Node Property Window Notes -->
<div>
<small>Extracts specific object from the incoming message.</small>
</div>
</script>
<script type="text/html" data-help-name="extract-message-data">
<p>This node extracts specific data from a message object based on the selected option.</p>
</script>