Skip to content

DialogResultMap

The value a dialog of each kind resolves with.

Import:

import type { DialogResultMap } from '@mnaoumov/obsidian-lib/modals/dialog-context';

Signature:

export interface DialogResultMap

Properties

PropertyTypeDescription
alertundefinedAn alert resolves with nothing.
confirmbooleanA confirm resolves with whether the user confirmed.
promptnull | stringA prompt resolves with the entered text, or null when dismissed.
selectItemunknownA selectItem resolves with one of its items, or null when dismissed.
selectOptionunknownA selectOption resolves with one of its option values, or null when dismissed.

Links to this page: