This widget is for the contents of the mw.notify popup that is shown when a page's "watchstar" is clicked (i.e. the 'watch this page' link; it may not be a star on all skins). It displays a message that a page is being watched/unwatched; a selection widget that can determine how long the page will be watched; and what watchlist labels should be applied.
Extends
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action |
string | One of 'watch', 'unwatch' |
||||||||||||
pageTitle |
string | Title of page that this widget will watch or unwatch |
||||||||||||
expiry |
string
|
null
|
ISO 8601 timestamp of the expiry to be pre-selected, or 'infinity' |
||||||||||||
updateWatchLink |
function | |||||||||||||
config |
Object | Configuration object Properties:
|
Methods
addTabKeyListener()inner
#
Allows user to tab into the expiry dropdown from the watch link. Valid only for the initial keystroke after the popup appears, so as to avoid listening to every keystroke for the entire session.