Optional
advancedOptional
blockThe Blockly block id used to identify this block.
Optional
blockThe block definition in XML for the blockly toolbox.
Optional
groupGroup label used to categorize block. Blocks are arranged with other blocks that share the same group.
Optional
jsDescription of code to appear in the hover text
Internal id used to refer to this block or snippet, must be unique
Optional
pyPython snippet of code to insert when dragged into editor
Optional
pyPython name used for highlighting the snippet, uses name if not defined
Optional
retThe return type of the block. This is used to determine the shape of the block rendered.
Optional
snippetTypeScript snippet of code to insert when dragged into editor
Optional
snippetTypeScript name used for highlighting the snippet, uses name if not defined
Optional
snippetDisplay just the snippet and nothing else. Should be set to true for language constructs (eg. for-loops) and to false for function calls (eg. Math.random())
Optional
weightThe weight for the block. Blocks are arranged in order of they appear in the category definition's array but the weight can be specified in the case that other APIs are dynamically added to the category (eg. loops.forever())
Indicates an advanced API. Advanced APIs appear after basic ones in the toolbox