blockly > ContextMenuRegistry > ActionRegistryItem

อินเทอร์เฟซ ContextMenuRegistry.ActionRegistryItem

การนําเสนอรายการเมนูปกติที่คลิกได้ในรีจิสทรี

ลายเซ็น:

interface ActionRegistryItem extends CoreRegistryItem 

ขยายจาก: CoreRegistryItem

พร็อพเพอร์ตี้

พร็อพเพอร์ตี้ คีย์ตัวปรับแต่ง ประเภท คำอธิบาย
callback (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: Scope) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: Scope, menuOpenEvent: Event) => string
separator? ไม่เคยใช้ (ไม่บังคับ)