blockly > ContextMenuRegistry > RegistryItem

ContextMenuRegistry.RegistryItem interface

A menu item as entered in the registry.

Signature:

interface RegistryItem 

Properties

Property Modifiers Type Description
callback (scope: Scope, e: PointerEvent) => void
displayText ((p1: Scope) => string | HTMLElement) | string | HTMLElement
id string
preconditionFn (p1: Scope) => string
scopeType ScopeType
weight number