blockly > ContextMenuRegistry > ActionRegistryItem
Interface ContextMenuRegistry.ActionRegistryItem
Uma representação de um item de menu normal e clicável no registro.
Signature:
interface ActionRegistryItem extends CoreRegistryItem
Extends: CoreRegistryItem
Propriedades
Propriedade | Modificadores | Tipo | Descrição |
---|---|---|---|
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) |