Commands.executeCommandById method
Commands › executeCommandById
Unofficial
Execute a command by ID.Signature:
executeCommandById(commandId: string, event?: Event | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| commandId | string | ID of command to execute. |
| event? | Event | undefined | *(Optional)* |
Returns: boolean — Whether the command was successfully executed.