Skip to content

Commands.executeCommand method

Commands › executeCommand

Unofficial

Execute a command by reference.

Signature:

executeCommand(command: Command, event?: Event | undefined): boolean

Parameters:

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

Returns: booleanWhether the command was successfully executed.