blockly > ContextMenuRegistry > unregister

ContextMenuRegistry.unregister() method

Unregisters a RegistryItem with the given ID.

Signature:

unregister(id: string): void;

Parameters

Parameter Type Description
id string The ID of the RegistryItem to remove.

Returns:

void

Exceptions

{Error} if an item with the given ID does not exist.