Stay organized with collections
Save and categorize content based on your preferences.
blockly > BlocklyOptions > toolbox
Signature:
toolbox?: string | ToolboxDefinition | Element;
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.
[[["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 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003etoolbox\u003c/code\u003e property in \u003ccode\u003eBlocklyOptions\u003c/code\u003e defines the structure and content of the toolbox in a Blockly workspace.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a toolbox definition in various formats: a string containing XML, a JavaScript object (\u003ccode\u003eToolboxDefinition\u003c/code\u003e), or an HTML \u003ccode\u003eElement\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis property is optional; if not specified, the workspace will not display a toolbox.\u003c/p\u003e\n"]]],["The `toolbox` property within `BlocklyOptions` accepts three types of values: a `string`, a `ToolboxDefinition`, or an `Element`. This property defines the toolbox that will be used in the Blockly workspace. Users can specify the toolbox using a string to reference a predefined toolbox, create a custom toolbox using `ToolboxDefinition`, or directly provide an `Element` representing the toolbox.\n"],null,["[blockly](./blockly.md) \\\u003e [BlocklyOptions](./blockly.blocklyoptions_interface.md) \\\u003e [toolbox](./blockly.blocklyoptions_interface.toolbox_propertysignature.md)\n\nBlocklyOptions.toolbox property\n-------------------------------\n\n**Signature:** \n\n toolbox?: string | ToolboxDefinition | Element;"]]