blockly > ContextMenuRegistry > ActionRegistryItem

ContextMenuRegistry.ActionRegistryItem arayüzü

Kayıt defterindeki normal, tıklanabilir bir menü öğesinin gösterimi.

İmza:

interface ActionRegistryItem extends CoreRegistryItem 

Uzantı: CoreRegistryItem

Özellikler

Mülk Değiştiriciler Tür Açıklama
callback (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: Scope) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: Scope, menuOpenEvent: Event) => string
ayraç? hiçbir zaman (İsteğe bağlı)