blocks_vertical/sensing.js
function() {
    this.jsonInit({
      "message0": Blockly.Msg.SENSING_CURRENT,
      "args0": [
        {
          "type": "field_dropdown",
          "name": "CURRENTMENU",
          "options": [
            [Blockly.Msg.SENSING_CURRENT_YEAR, 'YEAR'],
            [Blockly.Msg.SENSING_CURRENT_MONTH, 'MONTH'],
            [Blockly.Msg.SENSING_CURRENT_DATE, 'DATE'],
            [Blockly.Msg.SENSING_CURRENT_DAYOFWEEK, 'DAYOFWEEK'],
            [Blockly.Msg.SENSING_CURRENT_HOUR, 'HOUR'],
            [Blockly.Msg.SENSING_CURRENT_MINUTE, 'MINUTE'],
            [Blockly.Msg.SENSING_CURRENT_SECOND, 'SECOND']
          ]
        }
      ],
      "category": Blockly.Categories.sensing,
      "checkboxInFlyout": true,
      "extensions": ["colours_sensing", "output_number"]
    });
  }
function() {
    this.jsonInit({
      "message0": Blockly.Msg.SENSING_CURRENT,
      "args0": [
        {
          "type": "field_dropdown",
          "name": "CURRENTMENU",
          "options": [
            [Blockly.Msg.SENSING_CURRENT_YEAR, 'YEAR'],
            [Blockly.Msg.SENSING_CURRENT_MONTH, 'MONTH'],
            [Blockly.Msg.SENSING_CURRENT_DATE, 'DATE'],
            [Blockly.Msg.SENSING_CURRENT_DAYOFWEEK, 'DAYOFWEEK'],
            [Blockly.Msg.SENSING_CURRENT_HOUR, 'HOUR'],
            [Blockly.Msg.SENSING_CURRENT_MINUTE, 'MINUTE'],
            [Blockly.Msg.SENSING_CURRENT_SECOND, 'SECOND']
          ]
        }
      ],
      "category": Blockly.Categories.sensing,
      "checkboxInFlyout": true,
      "extensions": ["colours_sensing", "output_number"]
    });
  }
function ( ) { this . jsonInit ( { "message0" : Blockly . Msg . SENSING_CURRENT , "args0" : [ { "type" : "field_dropdown" , "name" : "CURRENTMENU" , "options" : [ [ Blockly . Msg . SENSING_CURRENT_YEAR , 'YEAR' ] , [ Blockly . Msg . SENSING_CURRENT_MONTH , 'MONTH' ] , [ Blockly . Msg . SENSING_CURRENT_DATE , 'DATE' ] , [ Blockly . Msg . SENSING_CURRENT_DAYOFWEEK , 'DAYOFWEEK' ] , [ Blockly . Msg . SENSING_CURRENT_HOUR , 'HOUR' ] , [ Blockly . Msg . SENSING_CURRENT_MINUTE , 'MINUTE' ] , [ Blockly . Msg . SENSING_CURRENT_SECOND , 'SECOND' ] ] } ] , "category" : Blockly . Categories . sensing , "checkboxInFlyout" : true , "extensions" : [ "colours_sensing" , "output_number" ] } ) ; }
Block to Report the current option.
@this Blockly.Block
Block to Report the current option .