Expand all

mw.echo.ui.NotificationsWrapper

Extends

Constructor

new mw.echo.ui.NotificationsWrapper(controller, model, [config]) #

Wrapper for the notifications widget, for view outside the popup.

Parameters:

Name Type Attributes Description
controller mw.echo.Controller

Echo controller

model mw.echo.dm.ModelManager

Notifications model manager

config Object optional

Configuration object

Mixes in:
Source:
Wrapper for the notifications widget, for view outside the popup.

Methods

populate() → {jQuery.Promise} #

Populate the notifications panel

Source:

Fires:

Returns:

A promise that is resolved when all notifications were fetched from the API and added to the model and UI.

Type
jQuery.Promise
Populate the notifications panel

Events

finishLoading() #

Notifications have successfully finished being processed and are fully loaded

Source:
Notifications have successfully finished being processed and are fully loaded