-
Notifications
You must be signed in to change notification settings - Fork 1
/
wunderlist-config.html
43 lines (40 loc) · 1.51 KB
/
wunderlist-config.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
<script type="text/javascript">
RED.nodes.registerType('wunderlist-config',{
category: 'config',
defaults: {
name: { value: 'My Wunderlist account', required: true },
clientId: { value: '', required: true },
accessToken: { value: '' }
},
label: function() {
return this.name;
}
});
</script>
<script type="text/x-red" data-template-name="wunderlist-config">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-client-id"><i class="fa fa-code"></i> Client ID</label>
<input type="text" id="node-config-input-clientId">
</div>
<div class="form-row">
<label for="node-config-input-access-token"><i class="fa fa-code"></i> Access Token</label>
<input type="text" id="node-config-input-accessToken">
</div>
</script>
<script type="text/x-red" data-help-name="wunderlist-config">
<p>Configures the fields needed for all Wunderlist nodes</p>
<ul>
<li>
<b>Client Id</b> that is generated for you when you create your Wunderlist app.
<br />Go <a href="https://developer.wunderlist.com/apps/new" target="_blank">here</a> to create your app.
</li>
<li>
<b>Access Token</b> that is generated when the user authorizes your application.
<br />If it's left blank in the node it must be set in the incoming message on <code>msg.wunderlistAccessToken</code>
</li>
</ul>
</script>