forked from chameleonbr/node-red-contrib-elasticsearch3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
remote-server.html
35 lines (34 loc) · 1.38 KB
/
remote-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
34
35
<script type="text/javascript">
/*global RED*/
RED.nodes.registerType('remote-server',{
category: 'config',
defaults: {
name: {value:'', required: true},
host: {value:'', required:true},
timeout: {value:"0", validate: RED.validators.number()},
reqtimeout: {value:"0", validate: RED.validators.number()}
},
paletteLabel: "Elastic Search Config",
label: function() {
return this.name || 'remote server';
}
});
</script>
<script type="text/x-red" data-template-name="remote-server">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-bookmark"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-host"><i class="fa fa-arrows"></i> Host</label>
<input type="text" id="node-config-input-host" placeholder="http://localhost:9200 (spaces as separator)">
</div>
<div class="form-row">
<label for="node-config-input-timeout"><i class="icon-clock"></i> Timeout</label>
<input type="text" id="node-config-input-timeout">
</div>
<div class="form-row">
<label for="node-config-input-reqtimeout"><i class="icon-clock"></i> Request Timeout</label>
<input type="text" id="node-config-input-reqtimeout">
</div>
</script>