blockly > ContextMenuRegistry > ActionRegistryItem
ContextMenuRegistry.ActionRegistryItem interface
A representation of a normal, clickable menu item in the registry.
Signature:
interface ActionRegistryItem extends CoreRegistryItem
Extends: CoreRegistryItem
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| callback | (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void | ||
| displayText | ((p1: Scope) => string | HTMLElement) | string | HTMLElement | ||
| preconditionFn | (p1: Scope, menuOpenEvent: Event) => string | ||
| separator? | never | (Optional) |