blockly > ContextMenuRegistry > ActionRegistryItem
Interfaz ContextMenuRegistry.ActionRegistryItem
Es una representación de un elemento de menú normal en el que se puede hacer clic en el registro.
Signature:
interface ActionRegistryItem extends CoreRegistryItem
Extiende: CoreRegistryItem
Propiedades
Propiedad | Modificadores | Tipo | Descripción |
---|---|---|---|
callback | (scope: Scope, menuOpenEvent: Event, menuSelectEvent: Event, location: Coordinate) => void | ||
displayText | ((p1: Scope) => string | HTMLElement) | string | HTMLElement | ||
preconditionFn | (p1: Scope, menuOpenEvent: Event) => string | ||
separador? | nunca | (Opcional) |