blockly > ContextMenuRegistry > RegistryItem

ContextMenuRegistry.RegistryItem 接口

注册表中输入的菜单项。

Signature:

interface RegistryItem 

属性

属性 修饰符 类型 说明
callback (范围:Scope,e:PointerEvent)=> void
displayText (p1:范围) => 字符串 | HTMLElement) | 字符串 | HTMLElement
ID [id] string
preconditionFn (p1:作用域) => 字符串
scopeType ScopeType
体重 number