blockly > ContextMenuRegistry > ActionRegistryItem
Interfejs ContextMenuRegistry.ActionRegistryItem
Przykład normalnego klikalnego elementu menu w rejestrze.
Podpis:
interface ActionRegistryItem extends CoreRegistryItem
Rozszerza: CoreRegistryItem
Właściwości
Właściwość | Modyfikatory | Typ | Opis |
---|---|---|---|
callback | (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void | ||
displayText | ((p1: Scope) => string | HTMLElement) | string | HTMLElement | ||
preconditionFn | (p1: Scope, menuOpenEvent: Event) => string | ||
separator? | nigdy | (Opcjonalnie) |