Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > common > defineBlocksWithJsonArray
Common.defineBlocksWithJsonArray() işlevi
Blockly Geliştirici Araçları tarafından oluşturulabilecek bir JSON blok tanımları dizisinden blokları tanımlayın.
İmza:
export declare function defineBlocksWithJsonArray(jsonArray: any[]): void;
Parametreler
Parametre |
Tür |
Açıklama |
jsonArray |
herhangi biri[] |
Bir JSON bloku tanımları dizisi. |
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-08-27 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"]]