-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnode.html
More file actions
44 lines (44 loc) · 1.36 KB
/
node.html
File metadata and controls
44 lines (44 loc) · 1.36 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
<!-- EXAMPLE NODE -->
<script type="text/javascript" id="node-example">
RED.nodes.registerType('example',{
category:'exampleCategory',
color:'#e2b784',
inputs:1,
inputLabels: "maybe a message",
outputs:1,
outputLabels: "a message with a topic",
icon:"node.svg",
defaults: {
name: {value:''},
topic: {value:''}
},
label: function(){
return this.name || 'example'
}
});
</script>
<script type="text/html" data-template-name="example">
<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-topic"><i class="fa fa-cog"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic" required>
</div>
</script>
<script type="text/html" data-help-name="example">
<p>Typescript example Node-RED node</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string</span>
</dt>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string</span>
</dt>
<h3>Details</h3>
<p>Some more information about the node.</p>
</script>