blockly > ContextMenuRegistry > register
ContextMenuRegistry.register() method
Registers a RegistryItem.
Signature:
register(item: RegistryItem): void;
Parameters
Parameter | Type | Description |
---|---|---|
item | RegistryItem | Context menu item to register. |
Returns:
void
Exceptions
{Error} if an item with the given ID already exists.