-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest-node.html
33 lines (31 loc) · 917 Bytes
/
test-node.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
<script type="text/javascript">
/* global RED:false */
RED.nodes.registerType('test-node', {
category: 'function',
defaults: {
name: { value: '' },
multiplyBy: { value: 2 },
},
inputs: 1,
outputs: 1,
icon: 'function.png',
label: function () {
return this.name || 'test-node';
},
});
</script>
<script type="text/x-red" data-template-name="test-node">
<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-multiplyBy"><i class="icon-tag"></i> Multiply by</label>
<input type="number" id="node-input-multiplyBy" placeholder="2" />
</div>
</script>
<script type="text/x-red" data-help-name="test-node">
<p>
This test node will multiply the payload by the value given in the <code>multiplyBy</code> property.
</p>
</script>