|
|
Language code:
|
Blockly.Blocks['math_foo'] = {
init: function() {
this.setHelpUrl('http://www.example.com/');
this.setTooltip('');
}
};
|
Generator stub:
|
Blockly.JavaScript['math_foo'] = function(block) {
// TODO: Assemble JavaScript into code variable.
var code = '...';
return code;
};
|
|