blockly > ContextMenuRegistry > ActionRegistryItem
Interface ContextMenuRegistry.ActionRegistryItem
Représentation d'un élément de menu normal cliquable dans le Registre.
Signature :
interface ActionRegistryItem extends CoreRegistryItem
Extends:CoreRegistryItem
Propriétés
Propriété | Modificateurs | Type | Description |
---|---|---|---|
callback | (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void | ||
displayText | ((p1: Scope) => string | HTMLElement) | string | HTMLElement | ||
preconditionFn | (p1: Champ d'application, menuOpenEvent: Événement) => chaîne | ||
séparateur ? | jamais | (Facultatif) |