Skip to content

SelectItemParams<T>

Options for selectItem.

Import:

import type { SelectItemParams } from 'obsidian-dev-utils/obsidian/modals/select-item';

Signature:

export interface SelectItemParams<T> extends ModalParamsBase

Extends: ModalParamsBase

Properties

PropertyTypeDescription
appAppAn Obsidian app instance.
(Inherited from ModalParamsBase)
cssClasses?string[]A CSS class to apply to the modal.
(Inherited from ModalParamsBase)
itemsT[]A list of items to choose from.
placeholder?stringA placeholder text for the input field.

Methods

MethodReturnsDescription
itemTextFunc(this, item)stringGet the display text for each item

Links to this page: