-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbaserow-row.html
99 lines (90 loc) · 3.31 KB
/
baserow-row.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<script type="text/javascript">
RED.nodes.registerType('baserow-row',{
category: 'baserow',
color: '#00752f',
defaults: {
name: {value:""},
creds: {
value: "",
type: 'baserowCredentials',
},
tableId: {value:""},
rowId: {value:""},
userFieldNames: {value:"false"},
},
inputs: 1,
outputs: 1,
icon: "baserow.png",
label: function() {
return this.name || "Row";
}
});
</script>
<script type="text/html" data-template-name="baserow-row">
<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-creds"> <i class="fa fa-key fa-fw"></i> Credentials</span></label>
<input type="text" id="node-input-creds">
</div>
<div class="form-row">
<label for="node-input-tableId"><i class="fa fa-table"></i> Table ID</label>
<input type="text" id="node-input-tableId" placeholder="1234">
</div>
<div class="form-row">
<label for="node-input-rowId"><i class="fa fa-table"></i> Row ID</label>
<input type="text" id="node-input-rowId" placeholder="1234">
</div>
<div class="form-row">
<label for="node-input-beforeId"><i class="fa fa-table"></i> Before ID</label>
<input type="text" id="node-input-beforeId" placeholder="1234">
</div>
<div class="form-row">
<label for="node-input-operation"><i class="fa fa-table"></i> Operation</label>
<select id="node-input-operation">
<option value="get">get</option>
<option value="create">create</option>
<option value="update">update</option>
<option value="move">move</option>
<option value="delete">delete</option>
</select>
</div>
<div class="form-row">
<label for="node-input-userFieldNames"><i class="fa fa-user"></i> Use user field names?</label>
<input type="checkbox" id="node-input-userFieldNames" placeholder="Table ID">
</div>
</script>
<script type="text/html" data-help-name="baserow-row">
<p>A node that allows communicating with baserow instances</p>
<p>Summary of the node.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>operation<span class="property-type">string</span></dt>
<dd>The operation to perform. One of create, update, move, delete</dd>
<dt>tableId<span class="property-type">string</span></dt>
<dd>The table to operate on</dd>
<dt>rowId<span class="property-type">string</span></dt>
<dd>The row id to operate on</dd>
<dt>payload<span class="property-type">string</span></dt>
<dd>Use user field names</dd>
<dt>userFieldNames<span class="property-type">boolean</span></dt>
<dd>
The payload to send.
<pre>
{
"Name": "string",
"Nachname": "string",
"Anmerkungen": "string",
"Aktiv": true
}
</pre>
</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">object</span></dt>
<dd>Explanation of payload.</dd>
</dl>
</script>