blockly > ContextMenuRegistry > ActionRegistryItem

Schnittstelle ContextMenuRegistry.ActionRegistryItem

Eine Darstellung eines normalen, anklickbaren Menüpunkts in der Registry.

Unterschrift:

interface ActionRegistryItem extends CoreRegistryItem 

Erweitert:CoreRegistryItem

Attribute

Attribut Modifikatoren Typ Beschreibung
callback (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: Scope) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: Scope, menuOpenEvent: Event) => string
Trennzeichen? nie (Optional)