mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
added validation to 'low' and 'high' to prevent anything but a number from being entered.
This commit is contained in:
parent
0dacd78252
commit
3cbbd1b21a
@ -31,8 +31,8 @@
|
|||||||
color:"#E2D96E",
|
color:"#E2D96E",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""},
|
name: {value:""},
|
||||||
low: {value:""},
|
low: {value:"",validate:function(v) { return !isNaN(v) || v.length === 0;} },
|
||||||
high: {value:""},
|
high: {value:"",validate:function(v) { return !isNaN(v) || v.length === 0;} },
|
||||||
inte: {value:"true"},
|
inte: {value:"true"},
|
||||||
property: {value:"payload",required:true}
|
property: {value:"payload",required:true}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user