調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >共通 >defineBlocksWithJsonArray
common.defineBlocksWithJsonArray() 関数
JSON ブロック定義の配列からブロックを定義します。Blockly デベロッパー ツールで生成できます。
署名:
export declare function defineBlocksWithJsonArray(jsonArray: any[]): void;
パラメータ
パラメータ |
型 |
説明 |
jsonArray |
任意 |
JSON ブロック定義の配列。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-29 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"]],["最終更新日 2024-08-29 UTC。"],[[["The `defineBlocksWithJsonArray` function dynamically creates Blockly blocks based on JSON definitions provided in an array."],["This function is particularly useful when utilizing block definitions exported from the Blockly Developer Tools, streamlining the block creation process."],["The function accepts a single argument: an array containing JSON objects, each representing the structure and properties of a Blockly block."],["Upon 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."]]],["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"]]