Skip to content

PluginNoticeComponentDelayedNotice.setContent method

PluginNoticeComponentDelayedNotice › setContent

Replaces this handle's message, 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.

Only this handle's own message is rewritten: when the notice was joined rather than opened (see PluginNoticeComponentShowNoticeAfterDelayParams.mode), the messages already in it are left alone.

Signature:

setContent(content: string | DocumentFragment): void

Parameters:

ParameterTypeDescription
contentstring | DocumentFragmentThe new notice content.

Returns: void