DialogResultMap
The value a dialog of each kind resolves with.
Import:
import type { DialogResultMap } from '@mnaoumov/obsidian-lib/modals/dialog-context';Signature:
export interface DialogResultMapProperties
| Property | Type | Description |
|---|---|---|
| alert | undefined | An alert resolves with nothing. |
| confirm | boolean | A confirm resolves with whether the user confirmed. |
| prompt | null | string | A prompt resolves with the entered text, or null when dismissed. |
| selectItem | unknown | A selectItem resolves with one of its items, or null when dismissed. |
| selectOption | unknown | A selectOption resolves with one of its option values, or null when dismissed. |
Links to this page: