تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > Block > compose
سمة Block.compose
طريقة اختيارية تعيد ضبط الكتلة استنادًا إلى محتوى مربّع حوار المُعدِّل.
Signature:
compose?: (rootBlock: Block) => void;
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`compose` is an optional function on blocks that can be used to reconfigure the block's appearance and behavior."],["This function is triggered when changes are made within the block's mutator dialog, allowing dynamic updates based on user interactions."],["The `compose` function receives the parent block as an argument, providing context and access to related components for modification."]]],["The `Block.compose` property is an optional function within the Blockly library. Its purpose is to modify a block's configuration after a mutator dialog's contents have been changed. This function takes a `Block` as a parameter and executes to reconfigure the block based on the updates from the dialog. It uses the updated information in order to compose the block.\n"]]