blockly > ContextMenuRegistry > RegistryItem
ContextMenuRegistry.RegistryItem 接口
在注册表中输入的菜单项。
Signature:
interface RegistryItem
属性
媒体资源 | 修饰符 | 类型 | 说明 |
---|---|---|---|
callback | (p1:范围) => void | ||
displayText | (p1:范围) => 字符串 | HTMLElement) | 字符串 | HTMLElement | ||
ID [id] | string | ||
preconditionFn | (p1:范围) => 字符串 | ||
scopeType | ScopeType | ||
重量 | number |