Stay organized with collections
Save and categorize content based on your preferences.
blockly > VariablesDynamic
VariablesDynamic namespace
Functions
Variables
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 2025-05-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eVariablesDynamic\u003c/code\u003e namespace provides functions and variables for managing dynamic variables within Blockly workspaces.\u003c/p\u003e\n"],["\u003cp\u003eIt offers functions to construct flyout elements and blocks for the variable category.\u003c/p\u003e\n"],["\u003cp\u003eIt includes variables like \u003ccode\u003eCATEGORY_NAME\u003c/code\u003e for identifying variable categories in toolbox XML and click handlers for variable creation.\u003c/p\u003e\n"],["\u003cp\u003eVariable creation is supported for three types: Colour, Number, and String through click handler variables.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [VariablesDynamic](./blockly.variablesdynamic_namespace.md)\n\nVariablesDynamic namespace\n\nFunctions\n\n| Function | Description |\n|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [flyoutCategory(workspace, useXml)](./blockly.variablesdynamic_namespace.flyoutcategory_1_function.md) | |\n| [flyoutCategory(workspace, useXml)](./blockly.variablesdynamic_namespace.flyoutcategory_2_function.md) | |\n| [flyoutCategoryBlocks(workspace)](./blockly.variablesdynamic_namespace.flyoutcategoryblocks_1_function.md) | Construct the blocks required by the flyout for the variable category. |\n\nVariables\n\n| Variable | Description |\n|---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CATEGORY_NAME](./blockly.variablesdynamic_namespace.category_name_variable.md) | String for use in the \"custom\" attribute of a category in toolbox XML. This string indicates that the category should be dynamically populated with variable blocks. See also Blockly.Variables.CATEGORY_NAME and Blockly.Procedures.CATEGORY_NAME. |\n| [onCreateVariableButtonClick_Colour](./blockly.variablesdynamic_namespace.oncreatevariablebuttonclick_colour_variable.md) | |\n| [onCreateVariableButtonClick_Number](./blockly.variablesdynamic_namespace.oncreatevariablebuttonclick_number_variable.md) | |\n| [onCreateVariableButtonClick_String](./blockly.variablesdynamic_namespace.oncreatevariablebuttonclick_string_variable.md) | |"]]