Stay organized with collections
Save and categorize content based on your preferences.
blockly > Blocks
Blocks variable
A mapping of block type names to block prototype objects.
Signature:
Blocks: {
[key: string]: BlockDefinition;
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[],["The provided content defines the \"Blocks\" variable within a programming context, likely related to Blockly. It's a dictionary-like structure that maps block type names (represented as strings) to their corresponding block prototype objects. Each block prototype, defined as `BlockDefinition`, holds the configuration and behavior specifications for that specific block type. This mapping is essential for managing and accessing different types of blocks in the system.\n"],null,[]]