blockly > BlockSvg > generateContextMenu
يمكنك إنشاء قائمة السياق لهذا الجزء.
Signature:
protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;
المرتجعات:
المصفوفة<ContextقائمةOption | LegacyContextMenuOption> | فارغ
خيارات قائمة السياقات أو "فارغ" إذا لم يكن هناك قائمة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `generateContextMenu()` method is used to create a context menu specifically for a BlockSvg object within Blockly."],["This method returns an array of options for the context menu, which can either be of type ContextMenuOption or LegacyContextMenuOption, or it can return null if no menu is to be displayed."],["The method is protected and is intended for internal use within the Blockly library or for developers extending its functionality."]]],[]]