Commands.executeCommand method
Commands › executeCommand
Unofficial
Execute a command by reference.Signature:
executeCommand(command: Command, $event?: Event): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| command | Command | {@link obsidian#Command} to execute. |
| $event? | Event | *(Optional)* |
Returns: boolean — Whether the command was successfully executed.