Skip to content

ShowPopoverBuildParams

The tools handed to ShowPopoverParams.build for populating a popover.

Import:

import type { ShowPopoverBuildParams } from 'obsidian-dev-utils/obsidian/popovers/popover';

Signature:

export interface ShowPopoverBuildParams

Properties

PropertyTypeDescription
contentElHTMLElementThe element to add the popover's content to. The OK and Cancel buttons are appended after it.

Methods

MethodReturnsDescription
cancel(this)voidDismisses the popover, resolving it with null, as the Cancel button does.
confirm(this)voidConfirms the popover, resolving it with the built value, as the OK button does.