Expand all

mw.echo.ui.ClonedNotificationItemWidget

Extends

Constructor

new mw.echo.ui.ClonedNotificationItemWidget($element, [config]) #

A wrapper widget for a fake, cloned notification. This is used for the fade in/out effects while reordering.

Parameters:

Name Type Attributes Description
$element jQuery

A clone of an mw.echo.ui.NotificationItemWidget's $element

config Object optional

Configuration options

Source:
A wrapper widget for a fake, cloned notification.

Methods

getId() → {number} #

Get the widget's id

Source:

Returns:

Widget id

Type
number
Get the widget's id

getTimestamp() → {string} #

Get the widget's timestamp

Source:

Returns:

Timestamp in UTC, ISO 8601 format

Type
string
Get the widget's timestamp

isFake() → {boolean} #

This widget is fake by definition.

Source:

Returns:

true

Type
boolean
This widget is fake by definition.

isForeign() → {boolean} #

The foreign state of this widget

Source:

Returns:

This item widget is foreign

Type
boolean
The foreign state of this widget

isRead() → {boolean} #

Get the widget's read state

Source:

Returns:

Widget is read

Type
boolean
Get the widget's read state

resetInitiallyUnseen() #

No-op