-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflowcontrol.html
97 lines (94 loc) · 3.92 KB
/
flowcontrol.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<script type="text/javascript">
RED.nodes.registerType('flowcontrolIn',{
category: 'common',
color: '#32a852',
defaults: {
topic: {value:""},
context: {value:""},
version: {value:false},
blTopic: {value:""},
blObj: {value:""},
name: {value:""}
},
inputs:1,
outputs:0,
icon: "batch.svg",
label: function() {return this.name||this.topic||"Flow Control In";}
});
</script>
<script type="text/html" data-template-name="flowcontrolIn">
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tag"></i> Send to Topics</label>
<input type="text" id="node-input-topic" placeholder="topic1,topic2">
</div>
<div class="form-row">
<label for="node-input-context"><i class="fa fa-tag"></i> Set Context</label>
<input type="text" id="node-input-context" placeholder="Set Context">
</div>
<div class="form-row">
<input type="checkbox" id="node-input-version" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-version" style="width: auto"> Add Version</label>
</div>
<div class="form-row">
<label for="node-input-blTopic"><i class="fa fa-tag"></i> Block Topic</label>
<input type="text" id="node-input-blTopic" placeholder="topic1,topic2...">
</div>
<div class="form-row">
<label for="node-input-blObj"><i class="fa fa-tag"></i> Block Objects</label>
<input type="text" id="node-input-blObj" placeholder="obj1,obj2...">
</div>
<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="Pretty Name">
</div>
</script>
<script type="text/html" data-help-name="flowcontrolIn">
<p>A simple node that routes messages</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('flowcontrolOut',{
category: 'common',
color: '#32a852',
defaults: {
topic: {value:""},
context: {value:""},
retained: {value:false},
blTopic: {value:""},
blObj: {value:""},
name: {value:""}
},
inputs:0,
outputs:1,
icon: "join.svg",
label: function() {return this.name||this.topic||"Flow Control Out";}
});
</script>
<script type="text/html" data-template-name="flowcontrolOut">
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tag"></i> Receive Topics</label>
<input type="text" id="node-input-topic" placeholder="topic1,topic2... | #">
</div>
<div class="form-row">
<label for="node-input-context"><i class="fa fa-tag"></i> Block Context</label>
<input type="text" id="node-input-context" placeholder="Block Context">
</div>
<div class="form-row">
<input type="checkbox" id="node-input-retained" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-retained" style="width: auto"> Block Retained Messages</label>
</div>
<div class="form-row">
<label for="node-input-blTopic"><i class="fa fa-tag"></i> Block Topics</label>
<input type="text" id="node-input-blTopic" placeholder="topic1,topic2...">
</div>
<div class="form-row">
<label for="node-input-blObj"><i class="fa fa-tag"></i> Block Objects</label>
<input type="text" id="node-input-blObj" placeholder="obj1,obj2...">
</div>
<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="Display Name">
</div>
</script>
<script type="text/html" data-help-name="flowcontrolOut">
<p>A simple node that routes messages</p>
</script>