Skip to content

DialogContextConstructorParams

Parameters for constructing a DialogContext.

Import:

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

Signature:

export interface DialogContextConstructorParams

Properties

PropertyTypeDescription
app?AppThe Obsidian app the real modals open in.

Leave it out only in a test whose driver answers every request; a request passed through then throws.
driver?DialogDriverThe driver consulted before each dialog opens. Leave it out in production, so every dialog is the real modal.