blockly > ContextMenuRegistry > ActionRegistryItem

ContextMenuRegistry.ActionRegistryItem 介面

表示登錄檔中可點選的一般選單項目。

Signature:

interface ActionRegistryItem extends CoreRegistryItem 

擴充:CoreRegistryItem

屬性

屬性 修飾符 類型 說明
回呼 (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: Scope) => 字串 | HTMLElement) | 字串 | HTMLElement
preconditionFn (p1: Scope, menuOpenEvent: Event) => string
分隔符? 永不 (選用)