forked from stephenkeep/node-red-contrib-amazondash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
button-pressed.html
34 lines (30 loc) · 991 Bytes
/
button-pressed.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
<script type="text/javascript">
RED.nodes.registerType('ButtonPressed',{
category: 'input',
color: '#F3EC14',
defaults: {
name: {value:"Dash Button"},
mac: {value:""}
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"Dash Button";
},
paletteLabel: "Dash Button"
});
</script>
<script type="text/x-red" data-template-name="ButtonPressed">
<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-mac">Dash MAC</label>
<input type="text" id="node-input-mac" placeholder="00:00:00:00:00:00">
</div>
</script>
<script type="text/x-red" data-help-name="ButtonPressed">
<p>Configure the node with the Dash Button MAC Address</p>
</script>