blockly >ContextMenuRegistry >取消注册

ContextMenuRegistry.unregister() 方法

取消注册具有指定 ID 的 RegistryItem。

Signature:

unregister(id: string): void;

参数

参数 类型 说明
id 字符串 要移除的 RegistryItem 的 ID。

返回

void

异常

{Error}(如果不存在具有指定 ID 的项)。