Skip to content

DialogDriver

An instance-scoped driver that can observe dialog requests and answer them.

ScriptedDialogDriver (scripted-dialog-driver.ts) is the one tests use.

Import:

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

Signature:

export interface DialogDriver

Properties

PropertyTypeDescription
handle(request: DialogRequest) => Promisable<DialogDriverResponse>Handles one dialog request, or passes it through to the real modal.

Links to this page: