-
Notifications
You must be signed in to change notification settings - Fork 0
/
buttoninterpreter.html
31 lines (29 loc) · 1.04 KB
/
buttoninterpreter.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
<script type="text/javascript">
RED.nodes.registerType('buttoninterpreter',{
category: 'function',
color: '#a6bbcf',
defaults: {
buttonsettings: {value:"", type:"buttonsettings"},
name: {value:""}
},
inputs:1,
outputs:1,
icon: "file.png",
label: function() {
return this.name||"buttoninterpreter";
}
});
</script>
<script type="text/html" data-template-name="buttoninterpreter">
<div class="form-row">
<label for="node-input-buttonsettings"><i class="fa fa-tag"></i> Settings</label>
<input type="text" id="node-input-buttonsettings" placeholder="Settings">
</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>
</script>
<script type="text/html" data-help-name="buttoninterpreter">
<p>A simple node that converts the messages to click, doubleclick, ... button events</p>
</script>