-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsignalk-app-event.html
More file actions
32 lines (30 loc) · 1006 Bytes
/
signalk-app-event.html
File metadata and controls
32 lines (30 loc) · 1006 Bytes
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
<script type="text/javascript">
RED.nodes.registerType('signalk-app-event',{
category: 'Signal K',
color: '#ffcc01',
defaults: {
name: {value:""},
event: {value: ""},
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"signalk-app-event";
},
paletteLabel: 'app event'
});
</script>
<script type="text/x-red" data-template-name="signalk-app-event">
<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>
<div class="form-row">
<label for="node-input-event"><i class="icon-tag"></i> Event Name</label>
<input type="text" id="node-input-event" placeholder="Event Name">
</div>
</script>
<script type="text/x-red" data-help-name="signalk-app-event">
<p>Input that listens for events send to 'app'</p>
</script>