forked from node-red/node-red-nodegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode.html.mustache
More file actions
50 lines (48 loc) · 1.7 KB
/
Copy pathnode.html.mustache
File metadata and controls
50 lines (48 loc) · 1.7 KB
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
<script type="text/html" data-template-name="{{&nodeName}}">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>
<script type="text/html" data-help-name="{{&nodeName}}">
<p>Summary of the node.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">object</span></dt>
<dd>Explanation of payload.</dd>
<dt class="optional">topic <span class="property-type">string</span></dt>
<dd>Explanation of topic.</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">object</span></dt>
<dd>Explanation of payload.</dd>
<dt class="optional">topic<span class="property-type">string</span></dt>
<dd>Explanation of topic.</dd>
</dl>
<h3>Details</h3>
<p>Explanation of the details.</p>
<p><b>Note</b>: Note of the node.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('{{&nodeName}}',{
color: '{{&color}}',
category: '{{&category}}',
defaults: {
name: { value: '' },
},
inputs:1,
outputs: {{&outputs}},
label: function() {
return this.name || '{{&nodeName}}';
},
labelStyle: function() {
return this.name?"node_label_italic":"";
},
inputLabels: {{&inputLabels}},
outputLabels: {{&outputLabels}},
icon: '{{&icon}}',
align: 'left',
info: '{{nodeInfo}}'
});
</script>