Skip to content

Commands.executeCommand method

Commands › executeCommand

Unofficial

Execute a command by reference.

Signature:

executeCommand(command: Command, $event?: Event): boolean

Parameters:

ParameterTypeDescription
commandCommand{@link obsidian#Command} to execute.
$event?Event*(Optional)*

Returns: boolean — Whether the command was successfully executed.