-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleNode.html
More file actions
31 lines (29 loc) · 890 Bytes
/
sampleNode.html
File metadata and controls
31 lines (29 loc) · 890 Bytes
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
<script type="text/javascript">
RED.nodes.registerType("Sample Node", {
category: "private",
color: "#FFFFFF",
defaults: {
name: { value: "aaa", required: true },
value: { value: "bbb", required: false },
},
inputs: 1,
outputs: 1,
icon: "",
label: function() {
return this.name || "SampleNode"
}
});
</script>
<script type="text/x-red" data-template-name="sampleNode">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-value"><i class="icon-tag"></i> Value</label>
<input type="text" id="node-input-value" placeholder="Value">
</div>
</script>
<script type="text/x-red" data-help-name="sampleNode">
<p>A node that is only examine between private repository and Node-RED instance</p>
</script>