mirror of
https://github.com/google/blockly.git
synced 2026-01-21 15:57:10 +01:00
Add field_number to Block Factory.
This commit is contained in:
@@ -44,6 +44,7 @@ goog.require('goog.math');
|
||||
*/
|
||||
Blockly.FieldNumber =
|
||||
function(value, opt_min, opt_max, opt_precision, opt_validator) {
|
||||
value = String(value);
|
||||
Blockly.FieldNumber.superClass_.constructor.call(this, value, opt_validator);
|
||||
this.setConstraints(opt_min, opt_max, opt_precision);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user