node-red-opcua-x
Version:
<img src="images/node-red-logo.png" alt="drawing" style="height:200px;"/> <!-- <img src="icons/opcua-logo.png" alt="drawing" style="height:200px;"/> -->
51 lines (48 loc) • 1.85 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('opcua-method', {
category: 'opcuax',
color: '#a6bbcf',
defaults: {
nodeid: { required: false },
name: { value: "" },
client: { value: "", required: true, type: "opcua-client" },
inputargs: { value: [], required: false },
outputargs: { value: [], required: false },
},
inputs: 1,
outputs: 1,
icon: "opcua-logo.png",
label: function () {
return this.name || "opcua-method";
}
});
</script>
<script type="text/html" data-template-name="opcua-method">
<div class="form-row">
<label for="node-input-name"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-nodeid"><i class="fa fa-link"></i> NodeId</label>
<input type="text" id="node-input-nodeid" placeholder="ns=*;i=*, ns=*;s=*">
</div>
<div class="form-row">
<label for="node-input-client"><i class="fa fa-plug"></i> Client</label>
<input type="text" id="node-input-client" placeholder="">
</div>
<h4>Input Arguments</h4>
<div class="form-row">
<div class="form-row node-input-property-container-row" style="min-height: 120px; min-width: 450px; border: 1px;">
<ol id="node-input-property-container"></ol>
</div>
</div>
<h4>Output Arguments</h4>
<div class="form-row">
<div class="form-row node-input-property-container-row" style="min-height: 120px; min-width: 450px; border: 1px;">
<ol id="node-input-property-container"></ol>
</div>
</div>
</script>
<script type="text/html" data-help-name="opcua-method">
<p>Simple Hello World node</p>
</script>