blockly > MenuGenerator
إمّا مصفوفة من خيارات القائمة أو دالة تنشئ مصفوفة من خيارات القائمة المنسدلة في الحقل أو العناصر التابعة لها.
Signature:
export type MenuGenerator = MenuOption[] | MenuGeneratorFunction;
المراجع: MenuOption، MenuGeneratorFunction
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-22 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-22 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`MenuGenerator` defines the type for options displayed in dropdowns within Blockly, like FieldDropdown."],["It accepts either a direct array of `MenuOption` objects or a `MenuGeneratorFunction` that dynamically creates this array."],["This type is utilized by FieldDropdown and similar components for generating their dropdown menus."]]],[]]