-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinsert.html
More file actions
31 lines (29 loc) · 999 Bytes
/
insert.html
File metadata and controls
31 lines (29 loc) · 999 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('tingodb-insert', {
category: 'function',
color: '#a6bbcf',
defaults: {
db: { value: "", type: 'tingodb' },
collection: { value: '', }
},
inputs: 1,
outputs: 1,
icon: "find.png",
label: function () {
return this.collection || "tingodb-insert";
}
});
</script>
<script type="text/x-red" data-template-name="tingodb-insert">
<div class="form-row">
<label for="node-input-db"><i class="icon-tag"></i> DB</label>
<input type="text" id="node-input-db" placeholder="DB">
</div>
<div class="form-row">
<label for="node-input-collection"><i class="icon-tag"></i> Collection</label>
<input type="text" id="node-input-collection" placeholder="Collection">
</div>
</script>
<script type="text/x-red" data-help-name="tingodb-insert">
<p>Inserts document into a collection.</p>
</script>