Skip to content

setting-components/file-path-component

Contains a component that edits the path of one vault file, with a file suggest.

Class Description
FilePathComponent A component that edits the path of one vault file: a text input whose suggest offers the vault’s files, showing each file’s name and path with the matched characters highlighted. The value is the typed text; a path need not exist yet, and FilePathComponent.getFile resolves it. You can add this component using SettingEx.addFilePath. In order to add the styles for the component, use initPluginContext in your plugin’s onload() function.
Type Description
FilePathComponentConstructorOptions The optional parameters of a FilePathComponent: those of its FileInputSuggest.