Skip to content

Commands.executeCommandById method

Commands › executeCommandById

Unofficial

Execute a command by ID.

Signature:

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

Parameters:

ParameterTypeDescription
commandIdstringID of command to execute.
event?Event | undefined*(Optional)*

Returns: booleanWhether the command was successfully executed.