obsidian/modals/select-option
Utility for displaying a modal that offers a fixed set of labelled options as buttons.
Unlike selectItem (a fuzzy-search picker over an arbitrary list), this modal renders one button per option — useful for a small, fixed set of mutually-exclusive choices where each choice has its own label and resolved value. It resolves with the chosen value, or null if the modal is dismissed without a choice.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| SelectOptionItem | A single selectable option rendered as a button in the selectOption modal. |
| SelectOptionParams | Parameters for selectOption. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| selectOption | Displays a modal in Obsidian offering a fixed set of labelled options as buttons. |