-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFCF-Frame.html
46 lines (43 loc) · 1003 Bytes
/
FCF-Frame.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
<script type="text/javascript">
RED.nodes.registerType('FCF-Frame', {
category: 'FCF',
color: '#DAC4B4',
defaults: {
rules: {
value: [{
topic: ''
}]
},
name: {
value: ''
},
token: {
value: ""
},
outputs: {
value: 1
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'Frame',
icon: 'debug.png',
label: function () {//根據條件來定義面板上要呈現的名稱
if (this.name)
return 'Frame: ' + this.name;
else
return 'Frame';
}
});
</script>
<script type="text/x-red" data-template-name="FCF-Frame">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Frame Class</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="FCF-Frame">
<p>
用來紀錄 Data Collection 以及 Pull Service 所取得的資料
</p>
</script>