Skip to content

PluginNoticeComponentDelayedNotice.setContent method

PluginNoticeComponentDelayedNotice › setContent

Replaces the notice content, re-applying the plugin-name prefix, the interactive-click guard, and the Cancel button. Useful for reporting progress. If the delay has not elapsed yet, the new content becomes what is shown once it does.

Signature:

setContent(content: string | DocumentFragment): void

Parameters:

ParameterTypeDescription
contentstring | DocumentFragmentThe new notice content.

Returns: void