Skip to content

SettingEx.addFilePath method

SettingEx › addFilePath

Adds a FilePathComponent to the setting: one vault file path, with a file suggest.

Signature:

addFilePath(app: App, callback: (filePath: FilePathComponent) => void, options?: FileInputSuggestConstructorOptions | undefined): this

Parameters:

ParameterTypeDescription
appAppThe Obsidian app, for the file suggest.
callback(filePath: FilePathComponent) => voidThe callback to call with the component.
options?FileInputSuggestConstructorOptions | undefinedThe optional file suggest parameters, such as a file filter.

Returns: this — The setting instance.