-
Notifications
You must be signed in to change notification settings - Fork 7
/
_template.html
35 lines (32 loc) · 951 Bytes
/
_template.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
<!--- $$NAME_UPPER$$ NODE --->
<script type="text/javascript">
RED.nodes.registerType('$$NAME_NODE$$', {
category: '$$CATEGORY$$',
color: '#59a27a',
defaults: {
name: { value: "" },
},
inputs: $$INPUTS$$,
outputs: $$OUTPUTS$$,
icon: "feed.png",
label: function () {
return this.name || "$$NAME_LABEL$$";
},
oneditprepare: function () {
},
oneditsave: function () {
},
oneditcancel: function () {
}
});
</script>
<script type="text/html" data-template-name="$$NAME_NODE$$">
<div class="zigbee2mqtt-devices-properties">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</div>
</script>
<script type="text/html" data-help-name="$$NAME_NODE$$">
</script>