Skip to content

BasesPropertyOption

Official

A dropdown menu allowing selection of a property.

Import:

import type { BasesPropertyOption } from 'obsidian';

Signature:

export interface BasesPropertyOption extends BasesOption

Extends: BasesOption

Properties

PropertyTypeDescription
default?stringDefault value.
displayNamestringDisplay name.
(Inherited from BasesOption)
filter?(prop: BasesPropertyId) => booleanIf provided, only properties which pass the filter will be included for selection in the property dropdown.
keystringKey.
(Inherited from BasesOption)
placeholder?stringPlaceholder.
shouldHide?() => booleanIf provided, the option will be hidden if the function returns true.
(Inherited from BasesOption)
type'property'Type.