Skip to content

Commands.executeCommandById method

Commands › executeCommandById

Unofficial

Execute a command by ID.

Signature:

executeCommandById(commandId: string, event?: Event | undefined): boolean

Parameters:

Parameter Type Description
commandId string ID of command to execute.
event? Event | undefined *(Optional)*

Returns: booleanWhether the command was successfully executed.