blockly > ContextMenuRegistry > ActionRegistryItem

ContextMenuRegistry.ActionRegistryItem インターフェース

レジストリ内の通常のクリック可能なメニュー項目を表します。

署名:

interface ActionRegistryItem extends CoreRegistryItem 

拡張: CoreRegistryItem

プロパティ

プロパティ 修飾子 タイプ 説明
callback (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void
displayText ((p1: スコープ) => string | HTMLElement) | string | HTMLElement
preconditionFn (p1: スコープ, menuOpenEvent: イベント) => 文字列
区切り文字 期限なし (省略可)