-
Notifications
You must be signed in to change notification settings - Fork 0
/
nr-balancefeed.html
43 lines (41 loc) · 1.34 KB
/
nr-balancefeed.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
37
38
39
40
41
42
43
<script type="text/javascript">
RED.nodes.registerType('Feed',{
category: 'Energy Balance',
color: '#D9E5D6',
defaults: {
name: {value:""},
balance: {value:"", type:"Balance",required:true},
direction:{value:"upstream",required:true}
},
inputs:1,
outputs:2,
outputLabels: [
"Power",
"Energy"],
icon: "join.svg",
label: function() {
return this.name||"Balance Feed";
}
});
</script>
<script type="text/html" data-template-name="Feed">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-balance"><i class="fa fa-tag"></i> Balance</label>
<select id="node-input-balance" placeholder="Balance"></select>
</div>
<div class="form-row">
<label for="node-input-direction"><i class="fa fa-tag"></i> Direction</label>
<select id="node-input-direction" placeholder="Direction">
<option value="upstream">Upstream</option>
<option value="downstream">Downstream</option>
</select>
</div>
</script>
<script type="text/html" data-help-name="Feed">
<p>
</p>
</script>