mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
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:
@@ -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}
|
||||
},
|
||||
|
Reference in New Issue
Block a user