Skip to content

BasesDropdownOption

Official

Dropdown option.

Import:

import type { BasesDropdownOption } from 'obsidian';

Signature:

export interface BasesDropdownOption extends BasesOption

Extends: BasesOption

Properties

PropertyTypeDescription
default?stringDefault value.
displayNamestringDisplay name.
(Inherited from BasesOption)
keystringKey.
(Inherited from BasesOption)
optionsRecord<string, string>Options.
shouldHide?() => booleanIf provided, the option will be hidden if the function returns true.
(Inherited from BasesOption)
type'dropdown'Type.