decorator.js 303 B

12345678910111213
  1. Blockly.Blocks['decorator'] = {
  2. init: function() {
  3. this.appendValueInput("BODY")
  4. .setCheck(null)
  5. .appendField("@");
  6. this.setPreviousStatement(true, null);
  7. this.setNextStatement(true, null);
  8. this.setColour(230);
  9. this.setTooltip('');
  10. this.setHelpUrl('');
  11. }
  12. };