-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcrestron-node-config.html
30 lines (26 loc) · 1.02 KB
/
crestron-node-config.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
<script type="text/javascript">
RED.nodes.registerType('crestron-node-config', {
category: 'config',
defaults: {
host: { value: "127.0.0.1", required: true },
port: { value: 9999, required: true, validate: RED.validators.number() }
},
label: function () {
return this.host + ":" + this.port;
}
});
</script>
<script type="text/x-red" data-template-name="crestron-node-config">
<div class="form-row">
<label for="node-config-input-host"><i class="icon-bookmark"></i> Host</label>
<input type="text" id="node-config-input-host">
</div>
<div class="form-row">
<label for="node-config-input-port"><i class="icon-bookmark"></i> Port</label>
<input type="text" id="node-config-input-port">
</div>
</script>
<script type="text/x-red" data-help-name="crestron-node-config">
<p>host, Fill Crestron host IP, default is 127.0.0.1</p>
<p>port, Fill Crestron host PORT, default is 9999</p>
</script>