forked from baycom/node-red-contrib-emberplus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemberplus-server.html
executable file
·33 lines (32 loc) · 1.21 KB
/
emberplus-server.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
<script type="text/javascript">
RED.nodes.registerType('emberplus-server',{
category: 'config',
defaults: {
name: {value:""},
host: {value:"localhost",required:true},
port: {value:9000,required:true,validate:RED.validators.number()},
paths: {value:""},
},
label: function() {
return this.name || this.host+":"+this.port;
}
});
</script>
<script type="text/html" data-template-name="emberplus-server">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<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>
<div class="form-row">
<label for="node-config-input-paths"><i class="icon-bookmark"></i> Paths</label>
<input type="text" id="node-config-input-paths">
</div>
</script>