-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua-browse.html
36 lines (34 loc) · 1.19 KB
/
opcua-browse.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script type="text/javascript">
RED.nodes.registerType('opcua-browse', {
category: 'opcuax',
color: '#a6bbcf',
defaults: {
nodeid: { value: "i=84", required: true },
name: { value: "" },
client: { value: "", required: true, type: "opcua-client" }
},
inputs: 1,
outputs: 1,
icon: "opcua-logo.png",
label: function () {
return this.name || "opcua-browse";
}
});
</script>
<script type="text/html" data-template-name="opcua-browse">
<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>
</script>
<script type="text/html" data-help-name="opcua-read">
<p>Simple Hello World node</p>
</script>