Expand all

mw.echo.ui.CrossWikiUnreadFilterWidget

Extends

Constructor

new mw.echo.ui.CrossWikiUnreadFilterWidget(controller, filtersModel, [config]) #

A filter for cross-wiki unread notifications

Parameters:

Name Type Attributes Description
controller mw.echo.Controller

Echo controller

filtersModel mw.echo.dm.FiltersModel

Filter model

config Object optional

Configuration object

Mixes in:
Source:
A filter for cross-wiki unread notifications

Methods

onPageFilterChoose(widget, item) #

Respond to choose event in one of the page filter widgets

Parameters:

Name Type Description
widget mw.echo.ui.PageFilterWidget

The widget the event originated from

item mw.echo.ui.PageNotificationsOptionWidget

The chosen item

Source:

Fires:

Respond to choose event in one of the page filter widgets

populateDataFromModel() #

Populate the widget from the model data

Source:
Populate the widget from the model data

populateSources() #

Populate the sources

setItemSelected(item) #

Set the selected item

Parameters:

Name Type Description
item mw.echo.ui.PageNotificationsOptionWidget

Item to select

Source:
Set the selected item

Events

filter(source, [pageId]) #

A source page filter was chosen

Parameters:

Name Type Attributes Description
source string

Source symbolic name

pageId number optional

Chosen page ID

Source:
A source page filter was chosen