forked from SAP-archive/yaas-node-red-contrib-yaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecommender.html
39 lines (37 loc) · 1.3 KB
/
recommender.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
<script type="text/javascript">
RED.nodes.registerType('get recommendation',{
category: 'yaas',
color: '#1b91e2',
defaults: {
name: {value: "Get Recommendation"},
yaasCredentials: {type:"yaas-credentials", required:true},
tenantId: {value: "sapevents", required: true},
},
inputs: 1,
outputs: 1,
icon: "yaas.png",
paletteLabel: 'get recommendation',
label: function() {
return this.name || ('get recommendation');
}
});
</script>
<script type="text/x-red" data-template-name="get recommendation">
<div class="form-row">
<label for="node-input-yaasCredentials"><i class="fa"></i>Credentials</label>
<input type="text" id="node-input-yaasCredentials">
</div>
<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-tenantId"><i class="fa fa-comments-o"></i>Tenant ID</label>
<input type="text" id="node-input-tenantId" placeholder="Tenant ID">
</div>
</script>
<script type="text/x-red" data-help-name="get recommendation">
<p>
Get Recommendation
</p>
</script>