-
Notifications
You must be signed in to change notification settings - Fork 1
/
wunderlist-get-tasks.html
41 lines (39 loc) · 1.44 KB
/
wunderlist-get-tasks.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
<script type="text/javascript">
RED.nodes.registerType('wunderlist-get-tasks',{
category: 'function',
color: '#E84228',
defaults: {
config: { type: 'wunderlist-config', required: true },
listId: { value: '' },
name: { value: '' }
},
inputs:1,
outputs:1,
icon: 'wunderlist-logo.png',
label: function() {
return this.name || 'get Wunderlist tasks';
}
});
</script>
<script type="text/x-red" data-template-name="wunderlist-get-tasks">
<div class="form-row">
<label for="node-input-config"><i class="fa fa-code"></i> Configuration</label>
<input type="text" id="node-input-config" placeholder="Configuration">
</div>
<div class="form-row">
<label for="node-input-listId"><i class="fa fa-list-alt"></i> List Id</label>
<input type="text" id="node-input-listId">
</div>
<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>
</script>
<script type="text/x-red" data-help-name="wunderlist-get-tasks">
<p>Get tasks for a list</p>
<ul>
<li><strong>List Id</strong> is a mandatory field. If it's left blank in the node it must be set in the incoming message on <code>msg.payload</code></li>
<li><code>msg.completed</code> is optional. If <code>true</code> it will return completed tasks</li>
<li><code>msg.payload</code> will be set to an array of task items</li>
</ul>
</script>