-
Notifications
You must be signed in to change notification settings - Fork 0
/
nr-balanceview.html
37 lines (35 loc) · 1.03 KB
/
nr-balanceview.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
<script type="text/javascript">
RED.nodes.registerType('BalanceView',{
category: 'Energy Balance',
color: '#F7A072',
defaults: {
name: {value:""},
balance: {value:"", type:"Balance",required:true}
},
inputs:1,
outputs:4,
outputLabels: [
"Balance",
"Upstream",
"Downstream",
"Meta"],
icon: "join.svg",
label: function() {
return this.name||"Balance View";
}
});
</script>
<script type="text/html" data-template-name="BalanceView">
<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>
</script>
<script type="text/html" data-help-name="BalanceView">
<p>
</p>
</script>