Notification

Describes a notification. See mw.notification module. A Notification object for 1 message.

The constructor is not publicly accessible; use mw.notification.notify instead. This does not insert anything into the document. To add to document use mw.notification.notify.

Methods

close() #

Close the notification.

Source:
Close the notification.

pause() #

Pause any running auto-hide timer for this notification.

Source:
Pause any running auto-hide timer for this notification.

resume() #

Start autoHide timer if not already started. Does nothing if autoHide is disabled. Either to resume from pause or to make the first start.

Source:
Start autoHide timer if not already started.