-
Notifications
You must be signed in to change notification settings - Fork 0
/
solution-events.html
32 lines (32 loc) · 1.02 KB
/
solution-events.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
<script type="text/javascript">
RED.nodes.registerType('consensus', {
category: 'EnergyWebX',
color: '#60A0FF',
inputs: 1,
outputs: 1,
icon: "consensus.svg",
label: function() {
return this.name || "consensus event";
},
inputLabels: ["result"],
outputLabels: ["confirmation"],
align: 'left',
defaults: {
name: {value: "consensus event" },
networkConfig: { type: 'energywebx-config' }
}
});
</script>
<script type="text/x-red" data-template-name="consensus">
<div class="form-row">
<label for="node-input-networkConfig"><i class="icon-tag"></i> Network Config</label>
<input type="text" id="node-input-networkConfig">
</div>
<div class="form-row">
<label for="node-input-result"><i class="icon-tag"></i> Result</label>
<input type="text" id="node-input-result" placeholder="Result">
</div>
</script>
<script type="text/x-red" data-help-name="consensus">
<p>Listen to consensus evetns for solution on EWX</p>
</script>