ソースを参照

add version into form-tip

Luigi Cisana 7 年 前
コミット
57696eb72a
共有1 個のファイルを変更した4 個の追加2 個の削除を含む
  1. 4 2
      ramp-thermostat/ramp-thermostat.html

+ 4 - 2
ramp-thermostat/ramp-thermostat.html

@@ -15,6 +15,8 @@
         <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
         <input type="text" id="node-input-name" placeholder="Name">
     </div>
+    <div class="form-tips"><span>ramp-thermostat version: 0.3.0</span>
+    </div>
     <div class="form-tips"><span>The Hysteresis is used to prevent osciliation. The [+] value is added to the target and the [-] (absolute) value is subtracted from the target. Within this neutral zone no action accurs.</span>
     </div>
 </script>
@@ -47,8 +49,8 @@
         defaults: {
             name: {value:""},
             profile: {value:"",type:"profile"},
-            hysteresisplus: {value:""},
-            hysteresisminus: {value:""}
+            hysteresisplus: {value:0, validate:RED.validators.number()},
+            hysteresisminus: {value:0, validate:RED.validators.number()}
         },
         inputs:1,
         outputs:3,