Expand all

mw.echo.dm.FiltersModel

Constructor

new mw.echo.dm.FiltersModel(config) #

Filters model for displaying filtered notification list.

Parameters:

Name Type Description
config Object

Configuration object

Mixes in:
Source:
Filters model for displaying filtered notification list.

Methods

getReadState() → {string} #

Get the read state filter

Source:

Returns:

Notifications read state

Type
string
Get the read state filter

getSourcePagesModel() → {mw.echo.dm.SourcePagesModel} #

Get the source page model

Source:

Returns:

Source pages model

Type
mw.echo.dm.SourcePagesModel
Get the source page model

getSourceTotalCount(source) → {number} #

Get the total count of a source. This sums the count of all sub pages in that source.

Parameters:

Name Type Description
source string

Symbolic name for source

Source:

Returns:

Total count

Type
number
Get the total count of a source.

setCurrentSourcePage(source, [page]) #

Set the currently selected source and page. If no page is given, or if page is null, the source title is assumed to be selected.

Parameters:

Name Type Attributes Description
source string

Source name

page string optional

Page name

Source:
Set the currently selected source and page.

setReadState(readState) #

Set the read state filter

Parameters:

Name Type Description
readState string

Notifications read state

Source:

Fires:

Set the read state filter

Events

update() #

The filters have been updated

Source:
The filters have been updated