Update node-red-random to add option to dynamically pass in 'To' and 'From' (#707)

* Add option to dynamically pass in 'From' and 'To' - fixed bug when 'From' was greater than 'To' by flipping the two

* Set initial values of 'From' and 'To to "" to allow dynamic overriding them
This commit is contained in:
juggledad
2020-12-13 07:58:13 -05:00
committed by GitHub
parent 0ac07a1c6f
commit 9eb031e912
5 changed files with 303 additions and 59 deletions

View File

@@ -31,8 +31,8 @@
color:"#E2D96E",
defaults: {
name: {value:""},
low: {value:"1"},
high: {value:"10"},
low: {value: 1,validate:function(v) { return !isNaN(v) || v.length === 0;} },
high: {value: 10,validate:function(v) { return !isNaN(v) || v.length === 0;} },
inte: {value:"true"},
property: {value:"payload",required:true}
},