-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwunderlist-create-task.html
48 lines (46 loc) · 2.18 KB
/
wunderlist-create-task.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
<script type="text/javascript">
RED.nodes.registerType('wunderlist-create-task',{
category: 'function',
color: '#E84228',
defaults: {
config: { type: 'wunderlist-config', required: true },
taskTitle: { value: '' },
listId: { value: '' },
name: { value: '' }
},
inputs:1,
outputs:1,
icon: 'wunderlist-logo.png',
label: function() {
return this.name || 'create Wunderlist task';
}
});
</script>
<script type="text/x-red" data-template-name="wunderlist-create-task">
<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-taskTitle"><i class="fa fa-thumb-tack"></i> Task Title</label>
<input type="text" id="node-input-taskTitle" placeholder="Milk">
</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-create-task">
<p>Creates a new task in a list</p>
<ul>
<li><strong>Task Title</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><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.listId</code></li>
<li>The Id of the newly created task will be set to the <code>msg.taskId</code> property</li>
<li>Optional - If <code>msg.dueDate</code> is set in the incoming message it will be set to the task. Format as per <a href="https://developer.wunderlist.com/documentation/concepts/formats">https://developer.wunderlist.com/documentation/concepts/formats</a></li>
<li>Optional - if <code>msg.reminderDate</code> is set in the incoming message it will create a reminder for the task. Format as for <code>msg.dueDate</code></li>
</ul>
</script>