Skip to content

Notice.setMessage method

Notice › setMessage

Official

Change the message of this notice.

Signature:

setMessage(message: string | DocumentFragment): this

Parameters:

ParameterTypeDescription
messagestring | DocumentFragmentThe message.

Returns: this

Since: 0.9.7

Example:

notice.setMessage('foo');
const fragment = createFragment();
fragment.createEl('strong', { text: 'bar' });
notice.setMessage(fragment);