จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > ContextMenuRegistry
ลายเซ็น:
export declare namespace ContextMenuRegistry
การแจงนับ
การแจงนับ |
คำอธิบาย |
ScopeType |
ตําแหน่งที่ควรแสดงผลรายการเมนูนี้ หากรายการเมนูควรแสดงผลในหลายขอบเขต เช่น ทั้งบนบล็อกและพื้นที่ทำงาน ก็ควรลงทะเบียนรายการเมนูนั้นสำหรับแต่ละขอบเขต |
อินเทอร์เฟซ
ประเภทอีเมลแทน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["The `ContextMenuRegistry` namespace manages context menu items in Blockly. It defines an enumeration `ScopeType` to specify where a menu item should appear. Four interfaces are provided: `ContextMenuOption` and `LegacyContextMenuOption` represent menu items for display. `RegistryItem` represents menu items within the registry, and `Scope` represents the rendering context, such as a workspace or block, providing context-dependent data. Developers should use `ContextMenuOption` when building new code.\n"],null,[]]