গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
blockly > common > defineBlocksWithJsonArray
common.defineBlocksWithJsonArray() ফাংশন
JSON ব্লক সংজ্ঞাগুলির একটি অ্যারে থেকে ব্লকগুলিকে সংজ্ঞায়িত করুন, যেমনটি ব্লকলি ডেভেলপার টুলস দ্বারা তৈরি হতে পারে।
স্বাক্ষর:
export declare function defineBlocksWithJsonArray(jsonArray: any[]): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
jsonArray | যেকোনো [] | JSON ব্লক সংজ্ঞাগুলির একটি অ্যারে। |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003edefineBlocksWithJsonArray\u003c/code\u003e function dynamically creates Blockly blocks based on JSON definitions provided in an array.\u003c/p\u003e\n"],["\u003cp\u003eThis function is particularly useful when utilizing block definitions exported from the Blockly Developer Tools, streamlining the block creation process.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts a single argument: an array containing JSON objects, each representing the structure and properties of a Blockly block.\u003c/p\u003e\n"],["\u003cp\u003eUpon execution, the function generates and registers the specified blocks within the Blockly environment, making them available for use in your workspace without returning any specific value.\u003c/p\u003e\n"]]],["The `defineBlocksWithJsonArray` function accepts an array of JSON block definitions (`jsonArray`) as input. It then uses these definitions to create blocks within the Blockly environment. The function is designed to handle definitions that might be generated by the Blockly Developer Tools. The function does not return any value and only take the array of JSON.\n"],null,["[blockly](./blockly.md) \\\u003e [common](./blockly.common_namespace.md) \\\u003e [defineBlocksWithJsonArray](./blockly.common_namespace.defineblockswithjsonarray_1_function.md)\n\ncommon.defineBlocksWithJsonArray() function\n-------------------------------------------\n\nDefine blocks from an array of JSON block definitions, as might be generated by the Blockly Developer Tools.\n\n**Signature:** \n\n export declare function defineBlocksWithJsonArray(jsonArray: any[]): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|---------|-------------------------------------|\n| jsonArray | any\\[\\] | An array of JSON block definitions. |\n\n**Returns:**\n\nvoid"]]