blockly > BlockSvg > generateContextMenu

เมธอด BlockSvg.generateContextTemplate()

สร้างเมนูตามบริบทสำหรับบล็อกนี้

ลายเซ็น:

protected generateContextMenu(): Array<ContextMenuOption | LegacyContextMenuOption> | null;

ส่งกลับ:

อาร์เรย์<Context MenuOption | LegacyContextTemplateOption> | null

ตัวเลือกเมนูตามบริบทหรือค่าว่างหากไม่มีเมนู