PluginNoticeComponentShowNoticeOptions.onCloseClick?
PluginNoticeComponentShowNoticeOptions › onCloseClick?
Type: (event: PluginNoticeCloseClickEvent) => Promisable<void>
A callback invoked when the user clicks the close (X) button, before the notice is hidden. Call PluginNoticeCloseClickEvent.cancel on the event to cancel the close and keep the notice open — for example after your own confirmation declines. An async callback is awaited before the notice is hidden. Runs only when a close button is shown (both PluginNoticeComponentShowNoticeOptions.shouldHideOnClick= false and PluginNoticeComponentShowNoticeOptions.shouldShowCloseButton are set).