Show:
Constructor
new Notification(message, options)
...
A Notification object for 1 message.
The underscore in the name is to avoid a bug https://github.com/senchalabs/jsduck/issues/304. It is not part of the actual class name.
The constructor is not publicly accessible; use mw.notification#notify instead. This does not insert anything into the document (see #start).
Parameters:
Name | Type | Description |
---|---|---|
message |
mw.Message | jQuery | HTMLElement | string | |
options |
Object |
Methods
pause()
...
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.