Notice.setMessage method
Notice › setMessage
Official
Change the message of this notice.Signature:
setMessage(message: string | DocumentFragment): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| message | string | DocumentFragment | The message. |
Returns: this
Since: 0.9.7
Example:
notice.setMessage('foo');
const fragment = createFragment();fragment.createEl('strong', { text: 'bar' });notice.setMessage(fragment);