Skip to content

PluginNoticeCloseClickEvent

The event passed to PluginNoticeComponentShowNoticeOptions.onCloseClick when the notice’s close (X) button is clicked.

Import:

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

Signature:

export interface PluginNoticeCloseClickEvent

Methods

MethodReturnsDescription
cancel()voidCancels the close, leaving the notice open.