टूलबॉक्स जोड़ना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टूलबॉक्स में ऐसे ब्लॉक होते हैं जिनका इस्तेमाल प्रोग्राम करने के लिए किया जाता है. ब्लॉक को वर्कस्पेस पर खींचकर छोड़ा जा सकता है.
टूलबॉक्स कैसा दिखता है, इस बारे में ज़्यादा जानने के लिए विज़ुअल ग्लॉसरी देखें.
बुनियादी परिभाषा
टूलबॉक्स की परिभाषा से यह पता चलता है कि टूलबॉक्स में कौनसे ब्लॉक शामिल किए जाते हैं और किस क्रम में. आपके टूलबॉक्स का ज़्यादातर लुक और स्टाइल, दूसरे तरीकों से तय किया जाता है.
हमारा सुझाव है कि आप JSON का इस्तेमाल करके अपना टूलबॉक्स तय करें.
इस कोड स्निपेट में, दो ब्लॉक वाला फ़्लायआउट टूलबॉक्स तय किया गया है:
const toolbox = {
// There are two kinds of toolboxes. The simpler one is a flyout toolbox.
kind: 'flyoutToolbox',
// The contents is the blocks and other items that exist in your toolbox.
contents: [
{
kind: 'block',
type: 'controls_if'
},
{
kind: 'block',
type: 'controls_whileUntil'
}
// You can add more blocks to this array.
]
};
// The toolbox gets passed to the configuration options during injection.
const workspace = Blockly.inject('blocklyDiv', {toolbox: toolbox});

टूलबॉक्स तय करने और कॉन्फ़िगर करने के तरीके के बारे में ज़्यादा जानने के लिए, टूलबॉक्स की खास जानकारी देखें.
इंजेक्शन के बारे में ज़्यादा जानकारी के लिए, वर्कस्पेस बनाना लेख पढ़ें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The toolbox, containing program blocks, is defined using JSON and can be dragged onto the workspace. A flyout toolbox, a simpler type, is specified by its `kind` and `contents`. The `contents` array lists blocks, defined by their `kind` and `type`, such as `controls_if` and `controls_whileUntil`. This toolbox definition is then passed to the configuration during the workspace injection process using `Blockly.inject`.\n"]]