node-red-contrib-rn-combine.../thermostat.html

30 lines
805 B
HTML
Raw Normal View History

2023-10-02 21:33:26 +03:00
<script type="text/javascript">
2023-10-02 22:53:03 +03:00
RED.nodes.registerType('c-thermostat',{
category: 'Combined RN',
2023-10-03 01:04:52 +03:00
color: '#F3B567',
2023-10-02 22:53:03 +03:00
paletteLabel: 'C-Thermostat',
2023-10-02 21:33:26 +03:00
defaults: {
name: {value:""}
},
inputs: 1,
2023-10-03 00:55:42 +03:00
outputs: 2,
2023-10-03 01:04:52 +03:00
outputLabels: ["heater","stats"],
2023-10-03 01:03:44 +03:00
icon: "font-awesome/fa-snowflake-o",
2023-10-02 21:33:26 +03:00
label: function() {
2023-10-02 22:53:03 +03:00
return this.name||"C-Thermostat";
2023-10-02 21:33:26 +03:00
}
});
</script>
2023-10-02 22:53:03 +03:00
<script type="text/html" data-template-name="c-thermostat">
2023-10-02 21:33:26 +03:00
<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>
2023-10-02 22:53:03 +03:00
<script type="text/html" data-help-name="c-thermostat">
<p>c-thermostat/p>
2023-10-02 21:33:26 +03:00
</script>
2023-10-02 22:53:03 +03:00