forked from DVR-Ltd/node-red-rcm-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmmg2-connector.html
More file actions
66 lines (52 loc) · 1.32 KB
/
mmg2-connector.html
File metadata and controls
66 lines (52 loc) · 1.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<script type="text/javascript">
RED.nodes.registerType(
"mmg2-connector",
{
category: "config",
defaults: {
name: {
value: "",
required: true
},
host: {
value: "",
required: true
},
username: {
value: "",
required: true
},
password: {
value: "",
required: true
}
},
inputs: 0,
outputs: 1,
icon: "white-globe.svg",
label: function() {
if (this.username && this.host) {
return this.username + "@" + this.host;
}
return "MMG2 Connection";
}
}
);
</script>
<script type="text/html" data-template-name="mmg2-connector">
<div class="form-row">
<label for="node-config-input-host"><i class="fa fa-tag"></i> Host</label>
<input type="text" id="node-config-input-host" placeholder="Host">
</div>
<div class="form-row">
<label for="node-config-input-username"><i class="fa fa-tag"></i> Username</label>
<input type="text" id="node-config-input-username" placeholder="Username">
</div>
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Password</label>
<input type="password" id="node-config-input-password" placeholder="Password">
</div>
</script>
<script type="text/html" data-help-name="mmg2-connector">
<p>A node that connects to an MMG2 instance.</p>
</script>