SelectItemParams<T>
Options for selectItem.
Import:
import type { SelectItemParams } from 'obsidian-dev-utils/obsidian/modals/select-item';Signature:
export interface SelectItemParams<T> extends ModalParamsBaseExtends: ModalParamsBase
Properties
| Property | Type | Description |
|---|---|---|
| app | App | An Obsidian app instance. (Inherited from ModalParamsBase) |
| cssClasses? | string[] | A CSS class to apply to the modal. (Inherited from ModalParamsBase) |
| items | T[] | A list of items to choose from. |
| placeholder? | string | A placeholder text for the input field. |
Methods
| Method | Returns | Description |
|---|---|---|
| itemTextFunc(this, item) | string | Get the display text for each item |
Links to this page: