-
Notifications
You must be signed in to change notification settings - Fork 7
/
rocketchat-out.html
37 lines (35 loc) · 1.1 KB
/
rocketchat-out.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
<script type="text/x-red" data-template-name="rocketchat-out">
<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-out">
<p>Sends a message to a Rocket.Chat room.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('rocketchat-out',{
category: 'social',
color: '#E29192',
defaults: {
name: {value:""},
server: {value:"", type:"rocketchat-server"},
room: {value:""}
},
inputs: 1,
outputs: 0,
icon: "rocketchat.png",
align: "right",
label: function () {
return this.name || "Rocket.Chat";
}
});
</script>