Blockly.Blocks['function_block'] = { init: function() { this.appendDummyInput() .appendField("fun ("); this.appendDummyInput() .appendField("inp1:"); this.appendValueInput("input") .setCheck(null); this.appendDummyInput() .appendField(" )"); this.setInputsInline(true); this.setOutput(true, null); this.setColour(210); this.setTooltip(""); this.setHelpUrl(""); }
Blockly.Blocks['function_block'] = { init: function() { this.appendDummyInput() .appendField(new Blockly.FieldLabel("fun (", "funClass1")); this.appendDummyInput() .appendField(new Blockly.FieldLabel("fun (", "funClass2")); this.appendValueInput("input") .setCheck(null); this.appendDummyInput() .appendField(new Blockly.FieldLabel("fun (", "funClass3"); this.setInputsInline(true); this.setOutput(true, null); this.setColour(210); this.setTooltip(""); this.setHelpUrl(""); }{ "type": "block_type", "message0": "%1", "args0": [ { "type": "field_label", "text": "default", "class": "style_me" } ] } |
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.