Skip to content

BasesFolderOption

Official

A text input allowing selection of a folder from in the vault.

Import:

import type { BasesFolderOption } from 'obsidian';

Signature:

export interface BasesFolderOption extends BasesOption

Extends: BasesOption

Properties

PropertyTypeDescription
default?stringThe default value of the option.
displayNamestringDisplay name.
(Inherited from BasesOption)
filter?(folder: TFolder) => boolean
keystringKey.
(Inherited from BasesOption)
placeholder?stringThe placeholder of the option.
shouldHide?() => booleanIf provided, the option will be hidden if the function returns true.
(Inherited from BasesOption)
type'folder'The type of the option.