Notice
Notification component. Use to present timely, high-value information.
Constructors
new Notice()
new Notice(
message
,duration
?):Notice
Parameters
• message: string
| DocumentFragment
The message to be displayed, can either be a simple string or a DocumentFragment
• duration?: number
Time in milliseconds to show the notice for. If this is 0, the Notice will stay visible until the user manually dismisses it.
Returns
Properties
noticeEl
noticeEl:
HTMLElement
Methods
hide()
hide():
void
Returns
void
setMessage()
setMessage(
message
):this
Change the message of this notice.
Parameters
• message: string
| DocumentFragment
Returns
this