Sha256: c1808c6c24023bff2900d45a54f966c568c64430b2dae85158daa3af67b23a3c
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
'use strict'; goog.provide('BlocklyInterpreter.ExtensionBlocks.text'); goog.require('Blockly.Blocks'); Blockly.Blocks['text_inflect'] = { init: function() { var inflections = <%= BlocklyInterpreter::ExtensionBlocks::TextInflectBlock::INFLECTIONS.to_json %>; var dropdownOptions = _.map(inflections, function (inflection) { return [inflection, inflection] }); this.appendValueInput('TEXT') .appendField(new Blockly.FieldDropdown(dropdownOptions), 'OP') .appendField('text') .setCheck('String'); this.setOutput(true, 'String'); this.setColour(Blockly.Blocks.texts.HUE); } }
Version data entries
3 entries across 3 versions & 1 rubygems