blockly > ContextMenuRegistry > RegistryItem
ContextMenuRegistry.RegistryItem interface
A menu item as entered in the registry.
Signature:
interface RegistryItem
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
callback | (p1: Scope) => void | ||
displayText | ((p1: Scope) => string | HTMLElement) | string | HTMLElement | ||
id | string | ||
preconditionFn | (p1: Scope) => string | ||
scopeType | ScopeType | ||
weight | number |