blockly > BlocklyOptions > toolbox
Signature :
toolbox?: string | ToolboxDefinition | Element;
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/10/14 (UTC).
[null,null,["Dernière mise à jour le 2024/10/14 (UTC)."],[[["The `toolbox` property in `BlocklyOptions` defines the structure and content of the toolbox in a Blockly workspace."],["It accepts a toolbox definition in various formats: a string containing XML, a JavaScript object (`ToolboxDefinition`), or an HTML `Element`."],["This property is optional; if not specified, the workspace will not display a toolbox."]]],["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"]]