blockly > ContextMenuRegistry > ActionRegistryItem

ContextMenuRegistry.ActionRegistryItem 接口

表示注册表中可点击的普通菜单项。

Signature:

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
分隔符? 永不 (可选)