mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Second version of FieldNumber API.
This commit is contained in:
@@ -470,9 +470,9 @@ Blockly.Blocks['field_image'] = {
|
||||
.appendField(new Blockly.FieldTextInput(src), 'SRC');
|
||||
this.appendDummyInput()
|
||||
.appendField('width')
|
||||
.appendField(new Blockly.FieldNumber('15'), 'WIDTH')
|
||||
.appendField(new Blockly.FieldNumber('15', 0, NaN, 1), 'WIDTH')
|
||||
.appendField('height')
|
||||
.appendField(new Blockly.FieldNumber('15'), 'HEIGHT')
|
||||
.appendField(new Blockly.FieldNumber('15', 0, NaN, 1), 'HEIGHT')
|
||||
.appendField('alt text')
|
||||
.appendField(new Blockly.FieldTextInput('*'), 'ALT');
|
||||
this.setPreviousStatement(true, 'Field');
|
||||
|
||||
Reference in New Issue
Block a user