Skip to content

BasesDropdownOption

Official

Dropdown option.

Import:

import type { BasesDropdownOption } from 'obsidian';

Signature:

export interface BasesDropdownOption extends BasesOption

Extends: BasesOption

Properties

Property Type Description
default? string Default value.
displayName string Display name.
(Inherited from BasesOption)
key string Key.
(Inherited from BasesOption)
options Record<string, string> Options.
shouldHide? () => boolean If provided, the option will be hidden if the function returns true.
(Inherited from BasesOption)
type 'dropdown' Type.