Protected
Readonly
_commandsProtected
Readonly
_handlersProtected
_recentProtected
Readonly
contributionProtected
fireRest
...arguments: []Readonly
onProtected
Readonly
onReadonly
onAn event is emitted when a command was executed.
Protected
Readonly
onReadonly
onAn event is emitted when a command is about to be executed.
It can be used to install or activate a command handler.
Protected
Readonly
onProtected
Readonly
toGet all registered commands identifiers.
Protected
doProtected
doProtected
fireGet an active handler for the given command or undefined
.
Rest
...args: any[]Returns with all handlers for the given command. If the command does not have any handlers, or the command is not registered, returns an empty array.
Get a toggled handler for the given command or undefined
.
Rest
...args: any[]Get a visible handler for the given command or undefined
.
Rest
...args: any[]Register the given command and handler if present.
Throw if a command is already registered for the given command identifier.
Optional
handler: CommandHandlerRegister the given handler for the given command identifier.
If there is already a handler for the given command then the given handler is registered as more specific, and has higher priority during enablement, visibility and toggle state evaluations.
Unregister command from the registry
Unregister command from the registry
The command registry manages commands and handlers.