แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > BlockSvg > generateContextMenu
สร้างเมนูตามบริบทสำหรับการบล็อกนี้
ลายเซ็น:
protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;
การคืนสินค้า:
อาร์เรย์<ContextMenuOption | LegacyContextMenuOption> | ค่าว่าง
ตัวเลือกเมนูตามบริบทหรือค่าว่างหากไม่มีเมนู
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["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."]]],[]]