-
Notifications
You must be signed in to change notification settings - Fork 0
/
read-list.html
36 lines (34 loc) · 1.17 KB
/
read-list.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
<script type="text/javascript">
RED.nodes.registerType('read-list', {
category: 'function',
color: '#a6bbcf',
defaults: {
name: { value: "" },
filename: { value: "" },
listname: { value: "" }
},
inputs: 1,
outputs: 1,
icon: "file.png",
label: function () {
return this.name || "read-list";
}
});
</script>
<script type="text/html" data-template-name="read-list">
<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-filename"><i class="fa fa-tag"></i> File Path</label>
<input type="text" id="node-input-filename" placeholder="File Path">
</div>
<div class="form-row">
<label for="node-input-listname"><i class="fa fa-tag"></i> List Name</label>
<input type="text" id="node-input-listname" placeholder="List Name">
</div>
</script>
<script type="text/html" data-help-name="read-list">
<p>A simple node to read list from file</p>
</script>