blockly > ContextMenuRegistry > RegistryItem
A menu item as entered in the registry.
Signature:
interface RegistryItem
Properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`ContextMenuRegistry.RegistryItem` defines the structure for items within Blockly's context menu registry."],["Registry items include properties like `callback`, `displayText`, `id`, `preconditionFn`, `scopeType`, and `weight` to control their behavior and appearance."],["These properties determine the action performed when the item is clicked, the text or element displayed, its unique identifier, the condition for display, the scope it applies to, and its priority in the menu."]]],[]]