Skip to content

FileCommandHandlerShouldAddToFileMenuParams

Parameters for FileCommandHandler.shouldAddToFileMenu.

Import:

import type { FileCommandHandlerShouldAddToFileMenuParams } from 'obsidian-dev-utils/obsidian/command-handlers/file-command-handler';

Signature:

export interface FileCommandHandlerShouldAddToFileMenuParams

Properties

PropertyTypeDescription
fileTFileThe file.
leaf?undefined | WorkspaceLeafThe workspace leaf, if available.
sourcestringThe source of the event.