-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrocketchat-in.html
36 lines (34 loc) · 1.08 KB
/
rocketchat-in.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
<script type="text/x-red" data-template-name="rocketchat-in">
<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-server"><i class="fa fa-tasks"></i> Server</label>
<input type="text" id="node-input-server" placeholder="">
</div>
<div class="form-row">
<label for="node-input-room"><i class="fa fa-tasks"></i> Room</label>
<input type="text" id="node-input-room" placeholder="room's name">
</div>
</script>
<script type="text/x-red" data-help-name="rocketchat-in">
<p>Checks for new messages in a Rocket.Chat room</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('rocketchat-in', {
category: 'social',
color: '#E29192',
defaults: {
name: {value:""},
server: {value:"", type:"rocketchat-server"},
room: {value:""}
},
inputs: 1,
outputs: 1,
icon: "rocketchat.png",
label: function() {
return this.name || "Rocket.Chat";
}
});
</script>