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): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| app | App | The Obsidian app, for the file suggest. |
| callback | (filePath: FilePathComponent) => void | The callback to call with the component. |
| options? | FileInputSuggestConstructorOptions | undefined | The optional file suggest parameters, such as a file filter. |
Returns: this — The setting instance.