selectItem<T>
Displays a selection modal in Obsidian for choosing an item from a list.
Import:
import { selectItem } from 'obsidian-dev-utils/obsidian/modals/select-item';Signature:
function selectItem(params: SelectItemParams<T>): Promise<T | null>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | SelectItemParams<T> | The parameters for the selection modal. |
Returns: Promise<T | null> — A Promise that resolves with the selected item or null if no item was selected.
Links to this page: