blockly > ContextMenuRegistry > getItem

เมธอด ContextเมนูตามบริบทRegistry.getItem()

ลายเซ็น:

getItem(id: string): RegistryItem | null;

พารามิเตอร์

พารามิเตอร์ Type คำอธิบาย
id สตริง รหัสของ RegistryItem ที่จะรับ

ส่งกลับ:

RegistryItem | ไม่มีข้อมูล

RegistryItem หรือ null หากไม่พบ