Skip to content

PluginNoticeComponentShowNoticeAfterDelayParams

Parameters for PluginNoticeComponent.showNoticeAfterDelay.

Import:

import type { PluginNoticeComponentShowNoticeAfterDelayParams } from 'obsidian-dev-utils/obsidian/components/plugin-notice-component';

Signature:

export interface PluginNoticeComponentShowNoticeAfterDelayParams

Properties

PropertyTypeDescription
abortController?AbortControllerWhen provided, a Cancel button is appended to the notice; clicking it aborts this controller. When omitted, no Cancel button is shown.
cancelButtonText?stringThe text of the Cancel button shown when PluginNoticeComponentShowNoticeAfterDelayParams.abortController is provided. When omitted, the localized Cancel label is used.
contentValueProvider<DocumentFragment | string>The notice content, resolved lazily only if the delay elapses — so an operation that finishes sooner never builds it.
delayInMilliseconds?numberHow long the operation must run before the notice is shown. Operations that finish sooner never show a notice, avoiding a distracting flash.